Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2020, 11:11 AM
hellige hellige is offline
Registered User
 
Join Date: Oct 2015
Posts: 2
Unhappy Scrollback buffer clears when using linux 'clear' command

When running a shell script that uses 'clear' (GNU bash, version 4.3.30) my scrollback buffer gets cleared. All history before the clear command was issued is gone. I have compared my session settings to that of other co-workers and they are the same even though they are not experiencing the same issue. My scrollback buffer is set to 128000 which seems to work fine (until using clear). Please help!
Reply With Quote
  #2  
Old 02-06-2020, 08:26 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,154
Hi hellige,

What is the remote system?

If you run man clear, what info do you get?

In my case it shows this:
Quote:
DESCRIPTION
clear clears your screen if this is possible, including its scrollback buffer (if the extended "E3" capability
is defined). clear looks in the environment for the terminal type and then in the terminfo database to deter‐
mine how to clear the screen.

clear ignores any command-line parameters that may be present.
Emphasis on *including its scrollback buffer* added by me.

When you run the clear command, SecureCRT in a default configuration (and other Xterm compliant consoles) receives an ESC[3;J sequence.

The ESC[3;J portion is an Xterm sequence that is documented to mean "Erase Saved Lines", a term which references the history or scrollback buffer in SecureCRT (and other Xterm terminals).

Which means SecureCRT is doing *exactly* the right thing. I can't explain your colleagues' results. Perhaps they are not using Xterm emulation?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 02-06-2020, 10:18 AM
hellige hellige is offline
Registered User
 
Join Date: Oct 2015
Posts: 2
Scrollback buffer clears when using linux 'clear' command

Hello Brenda,

Thank you so much for the reply. My man page says the same thing. I was not sure what they meant by "extended "E3" capability". Do you know if there is a way to change that setting in Xterm, or alternatively, is there a different terminal type that does not clear the buffer?
Reply With Quote
  #4  
Old 02-06-2020, 11:38 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,154
Hi hellige,
Quote:
Do you know if there is a way to change that setting in Xterm...
Outside the scope of SecureCRT support. We did not invent the Xterm emulation.

Quote:
...or alternatively, is there a different terminal type that does not clear the buffer?
All you can do is try. Better yet, see what the colleagues that get the desired behavior are using.

If you set the emulation to that (maybe VT100) in SecureCRT (Terminal / Emulation category of Session Options) and disconnect/reconnect, what are the results?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
clear screen , scrollback buffer


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:36 AM.