Weiwu Zhang
2021-05-21 00:18:19 UTC
This is a strange problem. Using Ubuntu 20.04
If I switch to a console with Ctrl+Alt+F3, launch alpine, I can use Ctrl+t
for selecting roles or browse for attachment in compose window.
If I launch alpine in a terminal emulator such as rxvt or Konsole, when
prompted, Ctrl+t causes the cursor to flash and nothing else happens. It's
now impossible to select Role in a terminal emulator or select a file to
attach to a new email.
The session is using Xorg, not Wayland. Also, /usr/bin/showkey shows that
commandline applications can receive Ctrl+t shortcut key, not intercepted
by the terminal emulator. Furthermore, none of the other applications that
makes heavy use of Ctrl, such as Bash and Emacs, are affected by this
problem.
One plausible explanation is that Ctrl+t is incorrectly interpreted as
TAB. But /usr/bin/showkey (run under X) can tell it is not. The following
output is when I pressed Ctrl+t.
# /usr/bin/showkey
[sudo] password for vnaeli:
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
keycode 28 release
keycode 29 press
keycode 29 press
keycode 29 press
keycode 29 press
keycode 20 press
keycode 20 release
keycode 29 release
keycode 29 press
(Note that 29 is Ctrl and 20 is t)
Thanks
If I switch to a console with Ctrl+Alt+F3, launch alpine, I can use Ctrl+t
for selecting roles or browse for attachment in compose window.
If I launch alpine in a terminal emulator such as rxvt or Konsole, when
prompted, Ctrl+t causes the cursor to flash and nothing else happens. It's
now impossible to select Role in a terminal emulator or select a file to
attach to a new email.
The session is using Xorg, not Wayland. Also, /usr/bin/showkey shows that
commandline applications can receive Ctrl+t shortcut key, not intercepted
by the terminal emulator. Furthermore, none of the other applications that
makes heavy use of Ctrl, such as Bash and Emacs, are affected by this
problem.
One plausible explanation is that Ctrl+t is incorrectly interpreted as
TAB. But /usr/bin/showkey (run under X) can tell it is not. The following
output is when I pressed Ctrl+t.
# /usr/bin/showkey
[sudo] password for vnaeli:
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
keycode 28 release
keycode 29 press
keycode 29 press
keycode 29 press
keycode 29 press
keycode 20 press
keycode 20 release
keycode 29 release
keycode 29 press
(Note that 29 is Ctrl and 20 is t)
Thanks