emacs-devel
[Top][All Lists]
Advanced

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

Re: Question about dubious code for terminal frames


From: Eli Zaretskii
Subject: Re: Question about dubious code for terminal frames
Date: Mon, 02 Sep 2024 18:31:39 +0300

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: emacs-devel@gnu.org,  rudalics@gmx.at
> Date: Mon, 02 Sep 2024 16:54:31 +0200
> 
> > But with the current proliferation of terminal emulators whose window
> > can be resized, what other choice do we have when the only source of
> > information about the resize is SIGWINCH?  How else can we update the
> > Emacs notion of the frame's size?
> 
> See get_tty_size which the SIGWINCH handler already calls. We could use
> that to get the physical dimension of the terminal.

Get the physical dimensions and then what?  We must record the
dimensions in the frames and windows that share that terminal.  Which
is what change_frame_size does.

> Outside of get_tty_size I'd make FrameCols/Rows const. I guess that
> frame size changes could remain as is. Only that setting FrameCols/Rows
> is none of their business. It's an input for them, not an output.

Martin will correct me if I'm wrong, but I think the current code
already does what you want: it only changes FrameCols/Rows when the
terminal was really resized.



reply via email to

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