bug-ncurses
[Top][All Lists]
Advanced

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

Re: Terminfo fixes from neovim work


From: Jonathan de Boyne Pollard
Subject: Re: Terminfo fixes from neovim work
Date: Wed, 31 May 2017 07:10:14 +0100 (BST)

Nicholas Marriott:

At the moment there is no “enable” terminfo capability, sonowhere to put DECLRMM – which makes filling in the other capabilities of limited use.

Thomas Dickey:

> * genuine Xterm (i.e. not something that lies about being xterm) supports
> DECSTBM, DECSLRM, and DECLRMM. But xterm-new et al. terminal types in terminfo
> do not define any of set_bottom_margin_parm, set_top_margin_parm,
> set_left_margin_parm, set_right_margin_parm, set_lr_margin, or set_tb_margin.

I discussed those recently, as a possible extension (there're no existing examples using those entries).

Well if you decide on names for DECLRMM, please let me know.  What (my work on) neovim is doing at the moment is adding un-named extension strings for enable_lr_margin and disable_lr_margin which just turn DEC private mode 69 on and off.  Out of all of the set_*_margin_* capabilities, it is using set_lr_margin and set_tb_margin, which it is patching in alongside the aforementioned to the termcap records for xterm* and (in the latter case) rxvt* as \x1b[%i%p1%d;%p2%ds and \x1b[%i%p1%d;%p2%dr.

On the subject of agreeing on extension string names: M. Dickey, please close your eyes.  (-:  M. Marriott, please see Anton Kochkov's true colour GitHub page.  If you, M. Koblinger, the emacs people, and I can all agree on Rüdiger Sonderfeld's names, which seem quite sensible, that would be excellent.  My neovim work is patching in \x1b[38:2:%p1%d:%p2%d:%p3%dm et al. for genuine Xterm and iTerm2, and \x1b[38;2;%p1%d;%p2%d;%p3%dm et al. for Linux VTs, Konsole, rxvt-unicode, Suckless Simpleterm and anything that advertises $TRUECOLOR as truecolor (as poor as that latter mechanism is) with M. Sonderfeld's names.


reply via email to

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