[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about dubious code for terminal frames
From: |
Gerd Möllmann |
Subject: |
Re: Question about dubious code for terminal frames |
Date: |
Mon, 02 Sep 2024 12:46:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Andreas Schwab <schwab@suse.de> writes:
> 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");
I eean in adjust_frame_size
if (new_inner_width != old_inner_width)
{
resize_frame_windows (f, new_inner_width, true);
/* MSDOS frames cannot PRETEND, as they change frame size by
manipulating video hardware. */
if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f))
FrameCols (FRAME_TTY (f)) = new_text_cols;
- 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
- Re: Question about dubious code for terminal frames, Gerd Möllmann, 2024/09/02