[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Aw: Re: Numeric codes of non-standard function keys
From: |
Thomas Dickey |
Subject: |
Re: Aw: Re: Numeric codes of non-standard function keys |
Date: |
Tue, 23 Apr 2024 18:23:34 -0400 |
On Mon, Apr 22, 2024 at 03:52:11PM +0200, Anton Vidovic wrote:
> 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?
Before I added a new terminfo format, the effective limit is 4096 bytes.
That determined the number of extended keys which could be defined,
and determined the size of the building-block which I used in a few places.
I could revisit this and construct a longer list for use in the entries
which are stored in the newer terminfo entry - though I'd have to
keep in mind whether the users of the terminfo database (such as NetBSD)
could handle the resulting larger entry.
> How would a ncurses application check for the availability of that key if the
> terminfo does not advertize it?
>
> Kind regards,
> Anton
>
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature