Re: Terminal output disappearing after SSH into cygwin

2021-01-23 Thread Thomas Wolff
Am 23.01.2021 um 14:22 schrieb Martyn B: Thomas Wolff wrote on 22.01.21 17:16: The clear is conditional. Maybe the value of $SHLVL after ssh login has changed somehow? It's 1 like in Cygwin Terminal on the Windows box Yeah, but maybe it wasn't 1 before, when it still worked for you? mar

Re: Terminal output disappearing after SSH into cygwin

2021-01-23 Thread Martyn B
Thomas Wolff wrote on 22.01.21 17:16: The clear is conditional. Maybe the value of $SHLVL after ssh login has changed somehow? It's 1 like in Cygwin Terminal on the Windows box martyn@linuxbox:~$ ssh Winuser@ Last login: Sat Jan 23 13:34:48 2021 from Winuser@WINDOWS-BOX ~ $ echo $SHLVL 1

Re: Terminal output disappearing after SSH into cygwin

2021-01-22 Thread Thomas Wolff
[somehow my previous response did not go to the list] Am 22.01.2021 um 12:10 schrieb Marco Atzeri via Cygwin: On 22.01.2021 09:16, Brian Inglis wrote: On 2021-01-21 09:02, matthew patton via Cygwin wrote: On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote: On 2021-01-21 11:13, Ken

Re: Terminal output disappearing after SSH into cygwin

2021-01-22 Thread Ken Brown via Cygwin
On 1/22/2021 3:16 AM, Brian Inglis wrote: On 2021-01-21 09:02, matthew patton via Cygwin wrote: On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote: On 2021-01-21 11:13, Ken Brown via Cygwin wrote: There's also /etc/bash.bash_logout.  The default version of that clears the screen:

(SOLVED) Re: Terminal output disappearing after SSH into cygwin

2021-01-22 Thread Martyn B
On 2021-01-21 11:13, Ken Brown via Cygwin wrote: There's also /etc/bash.bash_logout.  The default version of that clears the screen: ... > # when leaving the console clear the screen to increase privacy > if [ "$SHLVL" = 1 ]; then > [ -x /usr/bin/clear ] && /usr/bin/clear > fi Takashi Yan

Re: Terminal output disappearing after SSH into cygwin

2021-01-22 Thread Marco Atzeri via Cygwin
On 22.01.2021 09:16, Brian Inglis wrote: On 2021-01-21 09:02, matthew patton via Cygwin wrote: On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote: On 2021-01-21 11:13, Ken Brown via Cygwin wrote: There's also /etc/bash.bash_logout.  The default version of that clears the screen:

Re: Terminal output disappearing after SSH into cygwin

2021-01-22 Thread Brian Inglis
On 2021-01-21 09:02, matthew patton via Cygwin wrote: On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote: On 2021-01-21 11:13, Ken Brown via Cygwin wrote: There's also /etc/bash.bash_logout. The default version of that clears the screen: $ cat /etc/defaults/etc/bash.bash_logout [

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Ken Brown via Cygwin
On 1/21/2021 1:30 PM, Takashi Yano via Cygwin wrote: On Thu, 21 Jan 2021 13:13:56 -0500 Ken Brown wrote: # when leaving the console clear the screen to increase privacy if [ "$SHLVL" = 1 ]; then [ -x /usr/bin/clear ] && /usr/bin/clear fi That should be the culprit. Is editing /etc/bash.bas

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 01:30:41 PM EST, Takashi Yano via Cygwin wrote: On Thu, 21 Jan 2021 13:13:56 -0500 Ken Brown wrote: > # when leaving the console clear the screen to increase privacy > if [ "$SHLVL" = 1 ]; then >    [ -x /usr/bin/clear ] && /usr/bin/clear > fi That should be t

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 13:13:56 -0500 Ken Brown wrote: > # when leaving the console clear the screen to increase privacy > if [ "$SHLVL" = 1 ]; then >[ -x /usr/bin/clear ] && /usr/bin/clear > fi That should be the culprit. Is editing /etc/bash.bash_logout the right thing? -- Takashi Yano -- P

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Ken Brown via Cygwin
On 1/21/2021 12:28 PM, Takashi Yano via Cygwin wrote: On Thu, 21 Jan 2021 15:45:28 +0100 Martyn B wrote: - same behavior if I use "exit" or "logout". "bash_logout" gives me "command not found" - shell is /bin/bash on both sides What does "cat ~/.bash_logout" say? - the command "cygchec

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 15:45:28 +0100 Martyn B wrote: > - same behavior if I use "exit" or "logout". > "bash_logout" gives me "command not found" > - shell is /bin/bash on both sides What does "cat ~/.bash_logout" say? > - the command "cygcheck -c Cygwin" clears the local lines from > scre

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote: > 1) understand why this happens. - Is this the Cygwin standard behavior? Not in the slightest. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B
Marco Atzeri via Cygwin wrote on 21.01.21 16:13: very simple: ssh |& tee /tmp/ssh.log you can also use screen logging capability https://stackpointer.io/unix/linux-ssh-session-logging/564/ Thanks for the suggestions. I am aware of tee and screen and might as well even copy/paste the scree

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 14:08, Martyn B wrote: Hi list! Usually after an ssh session, the lines in my terminal are persistant after exiting the session. This is what I need. But at the moment when I exit an ssh session into Cygwin, the terminal gets cleared and all session information is lost. How c

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B
Takashi Yano via Cygwin wrote on 21.01.21 14:29: Takashi Yano via Cygwin wrote: Please update cygwin to 3.1.7. Sorry, I might misunderstand your problem. Does your problem happen when you exit from ssh session to cygwin? If so, are you using ~/.bash_logout (for bash) or ~/.logout (for tcsh)

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 22:13:53 +0900 Takashi Yano via Cygwin wrote: > On Thu, 21 Jan 2021 14:08:45 +0100 > Martyn B wrote: > > Hi list! > > > > Usually after an ssh session, the lines in my terminal are persistant > > after exiting the session. This is what I need. > > > > But at the moment when

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 14:08:45 +0100 Martyn B wrote: > Hi list! > > Usually after an ssh session, the lines in my terminal are persistant > after exiting the session. This is what I need. > > But at the moment when I exit an ssh session into Cygwin, the terminal > gets cleared and all session inf

Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B
Hi list! Usually after an ssh session, the lines in my terminal are persistant after exiting the session. This is what I need. But at the moment when I exit an ssh session into Cygwin, the terminal gets cleared and all session information is lost. How can I change this behavior? I need the