bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Aw: Re: Numeric codes of non-standard function keys


From: Anton Vidovic
Subject: Aw: Re: Numeric codes of non-standard function keys
Date: Mon, 22 Apr 2024 15:52:11 +0200

Hello,

> > to 568 (kUP7)? Are those used as bitmasks for the modifiers
> > Ctrl, Shift and Alt?

> ncurses doesn't do anything with modifiers.  Unlike PDCurses which
> deals with systems that provide that information, curses is more
> general.  Not everything is xterm or something that copies from xterm.
>
> The key definitions for modified keys are named according to a convention.
> Those names are described in user_caps(5).

I have noticed that for xterm and xterm-like emulators, the extended 
capabilities in terminfo descriptions include modifiers but only up to the 
value "7", which corresponds to Alt+Control, as described here:

https://invisible-island.net/ncurses/man/user_caps.5.html
https://invisible-island.net/xterm/terminfo.html
https://www.invisible-island.net/xterm/xterm-function-keys.html

Is there a reason why the combination of all three modifiers, Shift+Alt+Control 
has not been included in the terminfo description, which leads to ncurses not 
automatically generating the corresponding key code, even though the terminal 
does send the correct sequence, for example ^[[1;8C for Ctrl-Alt-Shift-Right, 
which would be kRIT8?

How would a ncurses application check for the availability of that key if the 
terminfo does not advertize it?

Kind regards,
Anton




reply via email to

[Prev in Thread] Current Thread [Next in Thread]