bug-ncurses
[Top][All Lists]
Advanced

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

New linux-s terminfo entry: Linux Console with a status line at bottom.


From: amontaron
Subject: New linux-s terminfo entry: Linux Console with a status line at bottom.
Date: Wed, 27 May 2020 23:00:05 +0200
User-agent: Mozilla/5.0 (Windows NT 6.2; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

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,

    use=linux,

# $ export TERM=linux-s ; tput init


To use it, simply do (only on a linux console) :
$ export TERM=linux-s
$ tput init

Then, try for example with screen(1) that do use of status line :
$ screen
And enjoy !

Note: The main reason for *iprog* is to make something like 'stty rows $LINES-1' and 'tput csr 1 $LINES-1'.
Alex.


reply via email to

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