[yocto] matchbox-terminal and function keys
Stuart Longland
stuartl at vrt.com.au
Thu Mar 27 16:01:15 PDT 2014
On 28/03/14 05:57, Stuart Longland wrote:
> Hi Ross,
> On 27/03/14 22:27, Burton, Ross wrote:
>> Can you paste the output of cat to confirm the values you're seeing?
>> The xterm guide says VT100 for F1-F4 (as VT100 doesn't define F5
>> onwards) and VT220 for F5-F10 and that's what I'm seeing when I
>> attempt this (F10 specifically being ^[[21~).
>
> Well, evidently the ncurses devs didn't get that memo as F1-F5 aren't
> recognised when TERM=xterm. I understood xterm was a superset of vt220.
>
> I'll do a `cat` to a file and post the contents when I get in. I'm just
> confused as to why ncurses applications don't seem to recognise F1-F5.
Okay, I've done a `cat` of the respective keys:
> root at xg100:~# hexdump -C /tmp/fn
> 00000000 1b 4f 50 1b 4f 51 1b 4f 52 1b 4f 53 1b 5b 31 35 |.OP.OQ.OR.OS.[15|
> 00000010 7e 1b 5b 31 37 7e 1b 5b 31 38 7e 1b 5b 31 39 7e |~.[17~.[18~.[19~|
> 00000020 1b 5b 32 30 7e 1b 5b 32 31 7e 0a |.[20~.[21~.|
So it indeed is sending those key commands. I've discovered that if I
set TERM=xterm-xfree86, things work so evidently the ncurses here has
something funny with its 'xterm' terminfo entry.
Is there a way to override the terminal type set by matchbox-terminal?
Regards,
--
Stuart Longland
Systems Engineer
_ ___
\ /|_) | T: +61 7 3535 9619
\/ | \ | 38b Douglas Street F: +61 7 3535 9699
SYSTEMS Milton QLD 4064 http://www.vrt.com.au
More information about the yocto
mailing list