[svlug] resizing an xterm with a screen session running

Seth David Schoen schoen at uclink4.berkeley.edu
Wed Mar 24 23:24:25 PST 1999


Ira Abramov writes:

> you know that neat feature in ncurses that senses xterm resize and
> redraws the pine session you are running, or lists a longer "top"?
> 
> well, what if I use screen? looks like the only way screen will see the
> new geometry is at reattach time. if I wanna resize the xterm I have to
> detach and reattach (or manually setenv cols and rows, as well as stty
> the new size)
> 
> anyone found a solution for that? the manpage was not helpful...

The WINCH signal (window changed size) is commonly used to notify processes
that the windows they're running in have been resized.  You might be able
to get things to work by sending the highest-level shell(s) running under
screen a WINCH:

kill -WINCH `/sbin/pidof bash`

or something.

That might not work, but it's probably work an initial try.

-- 
              Seth David Schoen / schoen at uclink4.berkeley.edu
He said, "This is what the king who will reign over you will do."  And they
said, "Nay, but we will have a king over us, that we also may be like all the
nations." (1 Sam 8)  http://ishmael.geecs.org/~sigma/   http://www.loyalty.org/

--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.



More information about the svlug mailing list