[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about dubious code for terminal frames
From: |
Andreas Schwab |
Subject: |
Re: Question about dubious code for terminal frames |
Date: |
Mon, 02 Sep 2024 12:23:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Sep 02 2024, Gerd Möllmann wrote:
> Andreas Schwab <schwab@suse.de> writes:
>
>> On Sep 02 2024, Gerd Möllmann wrote:
>>
>>> AFAIU, these two values give the physical size of a terminal (screen,
>>> window), as returned from the co and li escape sequences on termcap
>>> frames.
>>
>> Only if get_tty_size cannot determine the real size.
>
> Hm, yes, thanks. I guess setting cols and rows should then be
> conditionalized on being unknown?
if (FrameCols (tty) <= 0)
FrameCols (tty) = tgetnum ("co");
if (FrameRows (tty) <= 0)
FrameRows (tty) = tgetnum ("li");
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- Question about dubious code for terminal frames, Gerd Möllmann, 2024/09/02
- Re: Question about dubious code for terminal frames, Eli Zaretskii, 2024/09/02
- Re: Question about dubious code for terminal frames, Gerd Möllmann, 2024/09/02
- Re: Question about dubious code for terminal frames, Eli Zaretskii, 2024/09/02
- Re: Question about dubious code for terminal frames, Gerd Möllmann, 2024/09/02
- Re: Question about dubious code for terminal frames, Eli Zaretskii, 2024/09/02
- Re: Question about dubious code for terminal frames, Gerd Möllmann, 2024/09/02
- Re: Question about dubious code for terminal frames, Eli Zaretskii, 2024/09/02
- Re: Question about dubious code for terminal frames, Gerd Möllmann, 2024/09/02
- Re: Question about dubious code for terminal frames, Eli Zaretskii, 2024/09/02