In tcsh or bash, in WT or in a console, Ctrl-L scrolls text upwards so that the current command line (even one in progress) is at the top of the viewport ... without clobbering any previous output. I'd like to implement this in TCC (where plugins may have an input keystroke handler}. I've tried the scroll sequence (ESC[nS) but that clobbers whatever previous output is currently in the viewport. How do tcsh and bash do that? Any tips would be appreciated. Thanks.
In tcsh or bash, in WT or in a console, Ctrl-L scrolls text upwards so that the current command line (even one in progress) is at the top of the viewport ... without clobbering any previous output. I'd like to implement this in TCC (where plugins may have an input keystroke handler}. I've tried the scroll sequence (ESC[nS) but that clobbers whatever previous output is currently in the viewport. How do tcsh and bash do that? Any tips would be appreciated. Thanks.