bug-ncurses
[Top][All Lists]
Advanced

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

Re: [bug-ncurses] ANN: ncurses-6.4-20240120


From: Dr. Werner Fink
Subject: Re: [bug-ncurses] ANN: ncurses-6.4-20240120
Date: Mon, 22 Jan 2024 10:30:47 +0100

On 2024/01/22 04:15:39 -0500, Thomas Dickey wrote:
> On Mon, Jan 22, 2024 at 09:12:31AM +0100, Dr. Werner Fink wrote:
> > On 2024/01/20 23:32:02 +0000, Thomas Dickey wrote:
> > >  misc/terminfo.src                               | 1440 +++++------
> >   
> > > 20240120
> > >   + use ansi+sgrbold, ansi+sgrdim, ansi+sgrso, ansi+sgrul, ansi+tabs
> > >     ecma+color, ecma+sgr, vt100+4bsd, vt100+pfkeys, vt220+pcedit
> > >     xterm+256color, xterm+acs, xterm+nopcfkeys, xterm+pcf2 to trim -TD
> > 
> > Simple question on (u)rxvt (with TERM=rxvt-unicode): in rxvt-basic the arrow
> > keys are given as
> > 
> >   kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
> > 
> > this agrees with the result on the shell command line
> > 
> >  ^[[D^[[A^[[B^[[C
> > 
> > but not within an application like vim
> > 
> >  ^[OD^[OA^[OB^[OC
> 
> perhaps this -
> 
> vim uses smkx/rmkx,
> 
>       rmkx=\E>, 
>       smkx=\E=, 
> 

Also less does this :)
An strace log ( strace -s 1024 -e write -o log vim)
shows:

 grep -E '\\33(=|>)' log 
 write(1, "\33[?1049h\33[?1h\33=\33[?2004h\33[?1004h", 31) = 31
 write(1, "\33[24;1H\33[K\33[24;1H\33[?1004l\33[?2004l\33[?1l\33>", 40) = 40


> but not is1/rs1
> 
> infocmp rxvt-basic rxvt-unicode
>       is1: '\E[?47l\E=\E[?1l', '\E[!p'.
>       rs1: '\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H', '\Ec'.
> 
> but \E= sets application mode
> 
>       ESC =     Application Keypad (DECKPAM).
>       ESC >     Normal Keypad (DECKPNM), VT100.

infocmp rxvt-basic rxvt-unicode | grep -E '(s1|kx):'
        is1: '\E[?47l\E=\E[?1l', '\E[!p'.
        rmkx: '\E>', '\E[?1l\E>'.
        rs1: '\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H', '\Ec'.
        smkx: '\E=', '\E[?1h\E='.

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

Attachment: signature.asc
Description: PGP signature


reply via email to

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