Bug#304430: gnome-terminal: sends SIGWINCH when other tab is zoomed

Xavier Hienne Xavier Hienne <xhienne@solunix.fr>, 304430@bugs.debian.org
Sat, 07 May 2005 21:02:33 +0200


Matt Kraai a =E9crit :
> Package: gnome-terminal
> Version: 2.8.2-2
> Severity: normal
>=20
> When I have multiple tabs open, zooming in or out in one tab causes a
> the application in the other tabs to receive SIGWINCH.

Hi,

I can confirm this bug : not only the hidden applications receive a=20
SIGWINCH, but their terminal size changes while they are hidden and it=20
recovers its original size when the tab becomes visible again.


Here is a simple way do demonstrate this :
- open at least two tabs (with a mere bourne shell)

- execute the command below in each of them :
$ trap "stty -a | head -1" SIGWINCH

- Zoom (ctrl-+) in one of them

- Switch from one tab to one another

Here is an example of what can be observed :
speed 38400 baud; rows 59; columns 270; line =3D 0;
speed 38400 baud; rows 46; columns 197; line =3D 0;
speed 38400 baud; rows 59; columns 270; line =3D 0;
speed 38400 baud; rows 46; columns 197; line =3D 0;


Since every tab has its own pts device, I don't see any good reason why=20
the terminal size should change for the hidden applications.=20
gnome-terminal should check against terminal size changes only when the=20
tab is visible, or becomes visible again.

Regards,

Xavier