Question: Scroll text up to a clear screen? #17839

Closed
opened 2026-01-31 05:56:01 +00:00 by claunia · 0 comments
Owner

Originally created by @vefatica on GitHub (Jul 1, 2022).

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.

Originally created by @vefatica on GitHub (Jul 1, 2022). 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.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 05:56:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17839