shell not resizing window
I downloaded / installed a shell wrapper program called 'rootsh':
http://sourceforge.net/projects/rootsh/ When I resize the window, rootsh doesn't properly handle things. From what I can tell by doing google searches, a window resize sends the SIGWINCH to the process. Looking at the C code of rootsh, there's no handle for this signal. But I did find where it appears to be seeting the window characteristics when it launches the slave pty: Code:
if (winp == NULL) { The main thing that buggs me about this is when I open a window, and then resize it to be bigger, and launch an editor (such as emacs or vi) the area of the editor is small (the origonal window size). If anyone has any insight into this, please help! Thanks |
I haven't used rootsh, so this may not help - but I use the checkwinsize option for bash. You can set it with shopt -s checkwinsize either at the prompt or in your ~/.bashrc file. When it's set, bash checks the window size after each command and, if necessary, updates the values of LINES and COLUMNS.
|
That doesn't seem to work in this case.
|
Figured it out, if this helps anyone who has similiar problems. I got the logic flow from reading the source code of the bash shell, and was able to simplify it a bit for this case:
Code:
--- ../src_rpm/orig/rootsh-1.5.2/src/rootsh.c 2005-03-24 06:08:20.000000000 -0700 |
All times are GMT -5. The time now is 09:18 AM. |