Bug#1124250: xterm: Scrolling/jumping from prompt to prompt - OSC 133 wants to be implemented
Package: xterm
Version: 379-1
Severity: normal
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?
-- System Information:
Debian Release: 12.12
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable'), (5, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.57+deb12-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xterm depends on:
ii libc6 2.36-9+deb12u13
ii libfontconfig1 2.14.1-4
ii libfreetype6 2.12.1+dfsg-5+deb12u4
ii libice6 2:1.0.10-1
ii libtinfo6 6.4-4
ii libutempter0 1.2.1-3
ii libx11-6 2:1.8.4-2+deb12u2
ii libxaw7 2:1.0.14-1
ii libxext6 2:1.3.4-1+b1
ii libxft2 2.3.6-1
ii libxinerama1 2:1.1.4-3
ii libxmu6 2:1.1.3-3
ii libxpm4 1:3.5.12-1.1+deb12u1
ii libxt6 1:1.2.1-1.1
ii xbitmaps 1.1.1-2.2
Versions of packages xterm recommends:
ii x11-utils 7.7+5
Versions of packages xterm suggests:
pn xfonts-cyrillic <none>
-- no debconf information
Reply to: