Arrow keys, <Home>
and <End>
do not work in man
#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
<PgUp>
and<PgDn>
work just fineProgram
less
is affected, too. But inncte
andpangoterm
, both using an older and the same library version respectively, it works.In
less
you can see the ANSI escape sequences, when holding the key long enough — not sure if sequence is complete.Taking it back …
ncte
also does not work. Getting at least a bell.But still, it works in
pangoterm
(Ubuntu version 0~bzr613-1), which uses the same version oflibvterm
(Ubuntu version 0.1.2-2) asNCursesPtyWindow
.So, after some investigation into
pangoterm
it seems, thatless
communicates to the terminal to switch the standard (and thus the escape sequence for certain keys).less
does the switch most likely by some termio magic.Problem is: Even if
ncurses
could handle the switch (I don't know if ), it never sees this switch, becauselibvterm
handles it.So the solution is to recognize the keys with
ncurses
and translate them tolibvterm
.Final thoughts: There is something called "
keyboard_transmit
mode". Which can be enabled and changes the escape sequences for various function keys. This was probably happening.See: https://stackoverflow.com/questions/18658513/determining-escape-sequences-for-cursor-keys-canonically