[BRLTTY] Key combinations not (yet?) handled by the Linux virtual console
Aura Kelloniemi
kaura.dev at sange.fi
Wed Nov 26 12:42:55 UTC 2025
Hi list,
On 2025-11-24 at 16:14 -0500, Nicolas Pitre <nico at fluxnic.net> wrote:
> On Mon, 24 Nov 2025, Sébastien Hinderer wrote:
> > It seems the virtual consoles do not (yet?) have the capacity to
> > distinguish e.g. Enter from Contro-Enter,
> It does. Try this:
> $ cat > ~/ctrl-enter.map << EOF
> control keycode 28 = F100
> string F100 = "foobar"
> EOF
> $ sudo loadkeys ~/ctrl-enter.map
I think the problem is more comp/lex than this. If I run the above commands,
CTRL+Enter really is mapped to function key F100, which produces "foobar", but
"foobar" will not be recognized by any application as a press of CTRL+Enter.
Would you mind taking a look at this:
http://www.leonerd.org.uk/hacks/fixterms/
It is a non-comprehensive description of the "CSI u" mode which many modern
terminal emulators, like xterm, kitty, alacritty and iTerm2 support.
If Linux console supported this mode, it would make a huge number of new key
combinations available to users, mostly without any configuration.
--
Aura
More information about the BRLTTY
mailing list