Repository navigation
DECRQM reports alt screen modes 47/1047/1049 independently of the active screen #14198
Issue DescriptionModes 47, 1047 and 1049 all control one thing: whether the alternate screen is Concretely, entering the alternate screen with The practical effect is that an application cannot use DECRQM to learn whether For reference, xterm keeps no per-mode bit for these. It answers DECRQM for all Expected BehaviorAfter leaving the alternate screen, querying mode 47 reports reset: Actual BehaviorMode 47 reports set while the primary screen is showing: Reproduction Steps
printf '\033[?47h\033[?1049l\033[?47$p'
IFS= read -r -t 1 reply; printf '%s\n' "$reply" | cat -v
The same applies to any mix of the three. For example, Ghostty LogsGhostty VersionOS Version InformationmacOS 26.6.2 (build 25G83) (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty ConfigurationN/AAdditional Relevant InformationThere is a fix on this branch: https://github.com/aymanbagabas/ghostty/tree/aymanbagabas/vt-altscreen-mode-report It makes It also stops XTRESTORE applying DECSET side effects for these modes. Restoring A second, larger change is worth considering. I acknowledge that:
|
#14199