#1124250 xterm: Scrolling/jumping from prompt to prompt - OSC 133 wants to be implemented

Package:
xterm
Source:
xterm
Description:
X terminal emulator
Submitter:
Tim Connors
Date:
2025-12-29 12:25:02 UTC
Severity:
normal
#1124250#5
Date:
2025-12-29 11:43:18 UTC
From:
To:
I stumbled across the one good feature of apple macosx in fumbling
around their bizarre and illogical keyboard layout - CMD+up/down in
their terminal, iterates from PS1 prompt to PS1 prompt, highlighting
each prompt as you iterate and adjusting the scroll window when
necessary, regardless of whether you've logged into some remote
session where no-one's implemented a non-default PS1 or not.  Very
useful when you're logging into customer systems that you can't
otherwise modify to be not crippled.

I believe this is implemented by the shell via eg
/etc/profile.d/vte-2.91.sh on debian, /etc/profile.d/vte.sh on RHEL,
etc, which presumably make use of OSC 133.

Looks like the inferior competition implemented this in GNOME 46:
https://unix.stackexchange.com/questions/287541/scroll-to-the-last-command-on-terminal-like-os-x-terminal-marks

via maybe bugs like these:
https://bugzilla.gnome.org/show_bug.cgi?id=403130
https://gitlab.gnome.org/GNOME/vte/-/issues/2314
https://gitlab.gnome.org/GNOME/vte/-/issues/295

Question is, is their code easy to steal?