----------------------------------------------------------------------------------
@MSGID: 1@dont-email.me> 0b20608b
@REPLY: <20230829162831.608@kylheku.com> 8efc4951
@REPLYADDR Janis Papanagnou
<janis_papanagnou+ng@hotmail.com>
@REPLYTO 2:5075/128 Janis Papanagnou
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: <20230803112254.131@kylheku.com>
1@dont-email.me> <20230804101131.699@kylheku.com> 1@dont-email.me>
<20230805084100.353@kylheku.com> 1@dont-email.me> 1@dont-email.me>
<20230829162831.608@kylheku.com>
@TZUTC: 0200
@PID: Mozilla/5.0 (X11; Linux x86_64; rv:45.0)
Gecko/20100101 Thunderbird/45.8.0
@TID: FIDOGATE-5.12-ge4e8b94
On 30.08.2023 01:42, Kaz Kylheku wrote:
> On 2023-08-29, Janis Papanagnou <
janis_papanagnou+ng@hotmail.com> wrote:
> [...]
>> typeset -i rows cols
>> stty size | read rows cols
>
> I no longer trust the size, except on first invocation.
This is only called initially once in my ksh-code, later I use the
discipline function to update the variable on LINES changes:
function LINES.set { .kosta.rows=${.sh.value} ; .kosta.update ;}
(That`s Kornshell-specific, of course.)
Janis
> [...]
--- Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
* Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441