[9602] in Athena Bugs
Re: decmips 7.4G: xterm
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Mon Jul 13 10:11:18 1992
Date: Mon, 13 Jul 92 10:11:01 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: carla@Athena.MIT.EDU
Cc: bugs@Athena.MIT.EDU
In-Reply-To: [9590]
When you resize an xterm window, the xterm, which is controlling the
master end of the pty being used, sends a window-size-changed signal
over the pty to the slave end of it. Whatever process is controlling
the terminal on the slave end gets the signal, and either ignores it
or does something with it.
If you are at the C-shell prompt when you resize the window, then the
shell is the controlling process of the terminal, and it therefore
gets the SIGWINCH signal and deals with it, changing TERMCAP
appropriately.
However, if you are running some other program when you receive the
window, then it is that program, rather than the shell, that gets the
signal, and therefore, the shell does not know to update TERMCAP.
It sounds to me like your TERMCAP did not get updated because you were
not at the shell prompt when you changed the size of the window.
You can fix this problem by running "xresize" to reset the xterm's
idea of what the window size is, or by typing "kill -WINCH $$" to get
the shell to updat TERMCAP if your stty information is correct (which
it should be, since the xterm program should update it when you change
the window size).
If what I am describing is, in fact, not what caused the problem you
noticed, then please us know and we'll investigate things a bit
further.
Jonathan Kamens
IS/Athena Quality Assurance