wire / terminal-csi / su

CSI SU / SD — Scroll Up / Scroll Down (pan)

SU (final 'S') scrolls the contents of the scroll region up by Pn lines (new blank lines appear at the bottom); SD (final 'T') scrolls down by Pn lines (blank lines appear at the top). The cursor position is unchanged. Both default Pn to 1.

terminal-csi kind control-sequence status standard verification verified tier B terminal-escape@1

aka: SU · SD · scroll up · scroll down · pan up · pan down · ESC [ S · ESC [ T

frame

CSI introducer: \x1b[ ESC [ (0x1B 0x5B)

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
su SU — Scroll Up (S) \x1b[2S CSI Pn S scrolls the scroll region up Pn lines; the top Pn lines scroll off and Pn blank lines appear at the bottom. The cursor stays put.
sd SD — Scroll Down (T) \x1b[2T CSI Pn T scrolls the scroll region down Pn lines; the bottom Pn lines scroll off and Pn blank lines appear at the top.

gotchas


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/terminal-csi/su or /terminal-csi/su.json