Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655926 - x11-terms/gnome-terminal fails to respond to control codes enabling VT220 emulation and application keypad mode
Summary: x11-terms/gnome-terminal fails to respond to control codes enabling VT220 emu...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-17 01:41 UTC by Matthew "Archer" Vaughn
Modified: 2025-01-26 17:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info x11-terms/gnome-terminal (emerge-info.txt,8.56 KB, text/plain)
2018-05-17 01:41 UTC, Matthew "Archer" Vaughn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew "Archer" Vaughn 2018-05-17 01:41:08 UTC
Created attachment 531870 [details]
emerge --info x11-terms/gnome-terminal

According to upstream (https://bugzilla.gnome.org/show_bug.cgi?id=566430), gnome-terminal should respond to control codes enabling VT220 emulation and application keypad mode, and thereby emit escape sequences for the keypad in application keypad mode that are distinct from those with application keypad mode disabled (http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-VT220-Style-Function-Keys).

Using the latest gnome-terminal on gentoo, I'm unable to get it to emit those codes. I need the application keypad functionality to work with tmux, vi, and other programs that expect distinct character sequences from these keys; otherwise, they are not distinguishable from their counterparts elsewhere on the keyboard (e.g., keypad insert and editor insert produce identical sequences).

As an example of what is expected when typing the keypad '0' key with NumLock off:
% > cat -v
^[[2~
% > printf '\033[?1061h\033='; cat -v
^[Op

As an example of what I observe instead:
% > cat -v
^[[2~
% > printf '\033[?1061h\033='; cat -v
^[[2~

The control codes '\033[?1061h\033=' should be sufficient to enable VT220+AppKeypad, but in gnome-terminal they have no effect. The expected result is obtainable in xterm, but gnome-terminal is preferable.
Comment 1 Pacho Ramos gentoo-dev 2025-01-26 12:15:57 UTC
Are you still hitting this? Anyway, it looks like an upstream bug to me... but, if upstream refuses to consider it a bug, we cannot to much more :/
Comment 2 Enne Eziarc 2025-01-26 15:53:42 UTC
(In reply to Pacho Ramos from comment #1)
> Are you still hitting this? Anyway, it looks like an upstream bug to me...
> but, if upstream refuses to consider it a bug, we cannot to much more :/

Just tried it in xfce4-terminal and got the second output too, so if it's a bug then it's probably a bug in libvte, not gnome-terminal.
Comment 3 Pacho Ramos gentoo-dev 2025-01-26 16:43:24 UTC
I would try to report it here then:
https://gitlab.gnome.org/GNOME/vte/-/issues

Thanks
Comment 4 Enne Eziarc 2025-01-26 17:51:23 UTC
Found this from 2020, it looks like they supported it in the past then made an intentional decision to remove it:
https://gitlab.gnome.org/GNOME/vte/-/issues/229

It doesn't look like this bug will ever be directly fixed, but it's been a while since it was opened and nowadays there's no shortage of non-vte terminals to choose from: "eix -cC x11-terms -a! --deps /vte"

x11-terms/ghostty in particular is a few weeks old and makes a big deal of its xterm compatibility, which includes DECKPAM. Anyone looking here for answers should probably give that a try.