bug-ncurses
[Top][All Lists]
Advanced

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

Re: New linux-s terminfo entry: Linux Console with a status line at bott


From: amontaron
Subject: Re: New linux-s terminfo entry: Linux Console with a status line at bottom.
Date: Sun, 31 May 2020 11:08:56 +0200
User-agent: Mozilla/5.0 (Windows NT 6.2; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

Thanks for your answer Dick.

Yes, I'm unsure if sc/rc could conflicts with curses or not when using them with tsl/fsl/dsl at the same time ...
It seems to works as is (so, not cancelled) with e.g. screen(1). But, perhaps, they should or must be cancelled ?? Don't know.
Cancel them if you think it's better (or safer). Of course sc/rc cannot be nested.

Meanwhile, I wrote a improved and simpler version with the use of \E[?6h and \E[?6l - no matter with sc/rc :

linux-s|Linux Console with added status line at bottom,

    iprog= bash -c 'echo -ne "\E[?6l\E[255H\E[A\E[6n" ; read -d R TMP
    ; LINES=`echo $TMP | cut -f1 -d ";" | cut -f2 -d "["`
    ; stty rows $LINES ; echo -ne "\E[;"$LINES"r\E[J\E[?6h"',

    hs, tsl=\E7\E[?6l\E[255;%p1%dH, fsl=\E[?6h\E8, dsl=\E7\E[?6l\E[255H\E[K\E[?6h\E8,

    csr@, rs1=\E]R, .sc@, .rc@, ed@, clear=\E[255;255H\E[1J\E[H,

    use=linux,

# $ export TERM=linux-s ; tput init


Then did the same for linux-m1-s, linux-m1b-s, linux-m2-s. All three have the status line on top while linux-s have the status line on bottom.
You'll found all that in the file linux-s.ti I attached to you in this mail plus screen.linux-m1-s, screen-linux-m1b-s, screen-linux-m2-s entries.

Alex.

Le 30/05/2020 23:36, Thomas Dickey a écrit :
On Wed, May 27, 2020 at 11:00:05PM +0200, amontaron wrote:
Hi Dickey,

    I'm back again with this new terminfo I made for Linux to simulate a
status line on the console which lacks it :

linux-s|Linux Console with added status line at bottom,

    iprog= bash -c 'echo -ne "\E[?6l\E[255H\E[A\E[6n" ; read -d R TMP
    ; LINES=`echo $TMP | cut -f1 -d ";" | cut -f2 -d "["`
    ; stty rows $LINES ; echo -ne "\E[;"$LINES"r\E[J"',

    hs, tsl=\E7\E[255;%p1%dH, fsl=\E8, dsl=\E7\E[255H\E[K\E8,

    csr@, rs1=\E]R, .sc@, .rc@, ed@, clear=\E[255;255H\E[A\E[1J\E[H,
This has "sc" and "rc" both cancelled and then commented-out


Attachment: linux-s.ti
Description: Text document


reply via email to

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