Re: [dev] [st] Terminal abnormal key codes

From: Pickfire <pickfire_AT_riseup.net>
Date: Wed, 2 Sep 2015 20:12:02 +0800

On Tue, Sep 01, 2015 at 04:40:12PM +0200, Roberto E. Vargas Caballero wrote:
>On Tue, Sep 01, 2015 at 10:22:52PM +0800, Pickfire wrote:
>> Hi, it seems that st does some terminal codes abnormally[1].
>>
>> What is the reason for st's key codes to be different from the other
>> terminals? Is st following some standards?
>>
>> [1]: https://github.com/fish-shell/fish-shell/issues/2309#issuecomment-136678774
>
>Yes, st follows terminfo(5). Every terminal has different keys,
>so, I don't know what you mean with st using different keys.
>You can see the differences between xterm an linux vt:
>
>$ infocmp xterm linux
>
>comparing xterm to linux.
> comparing booleans.
> ccc: F:T.
> eo: F:T.
> km: T:F.
> mc5i: T:F.
> npc: T:F.
> xon: F:T.
> comparing numbers.
> cols: 80, NULL.
> lines: 24, NULL.
> ncv: NULL, 18.
> comparing strings.
> acsc: '``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~', '+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376'.
> cbt: '\E[Z', NULL.
> civis: '\E[?25l', '\E[?25l\E[?1c'.
> clear: '\E[H\E[2J', '\E[H\E[J'.
> cnorm: '\E[?12l\E[?25h', '\E[?25h\E[?0c'.
> cvvis: '\E[?12;25h', '\E[?25h\E[?8c'.
> ...
> smkx: '\E[?1h\E=', NULL.
> smm: '\E[?1034h', NULL.
> smpch: NULL, '\E[11m'.
> u8: '\E[?1;2c', '\E[?6c'.

How do you know that smkx should be '\E[?1h\E='? Is there any
documentation about it?

>If your program does not use terminfo(3)
>(http://linux.die.net/man/3/setupterm), then is broken.
>About the problems with DELETE, please take a look to
>the FAQ (section Why doesn't the Del key work in some programs?)

I had read the FAQ again and again, but I just doesn't understand why some applications
doesn't work in st but works in other terminal, the FAQ just says that
the applications are buggy.

Good luck and have a nice day!

-- 
 _____________________________________
< Do what you like, like what you do. >
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Received on Wed Sep 02 2015 - 14:12:02 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 02 2015 - 14:24:08 CEST