Re: curses: Home key sends 0x162 in tmux

2016-12-01 Thread Roy Marples
On 30/11/2016 22:11, Carsten Kunze wrote: > Brett Lymn wrote: > >> But here we see: >> >>> kbeg=\E[1~ >>> khome=\E[1~ >> >> So, we have two keys that map to ESC [1~ so it would depend entirely on >> how the termcap is processed as to which leaf symbol is assigned to the >> escape

Re: curses: Home key sends 0x162 in tmux

2016-12-01 Thread Carsten Kunze
Roy Marples wrote: > $ infocmp > # Reconstructed from $TERMCAP > > I would look into the content of this environment variable. TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\ :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\ :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH

Re: curses: Home key sends 0x162 in tmux

2016-12-01 Thread Valery Ushakov
Carsten Kunze wrote: > TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\ [...] > This is from tmux(1), the same (kh=\E[1~:@1=\E[1~) is set by > screen(1). So who sets this? (TERMCAP is not set, when screen(1) > or tmux(1) are not started.) screen exports TERMCAP to its children. Not sure