|
From: | Antoine Levitt |
Subject: | Re: [Patch] Resizing shells in shell-mode |
Date: | Sun, 25 May 2008 14:26:06 +0200 |
Stefan Monnier skrev:I think the right thing to do is to set the new size on the pty with ioctl TIOCSWINSZ and then send SIGWINCH to the inferior process. AFAIK, shells react on that to set COLUMNS and LINES. The signal is discarded by default so it does no harm if not caught.
Problem is: sending "export COLUMNS=%d" won't do the right thing if the
process running currently isn't some bourne derivative. E.g. if it's
`csh' or some completely different process.
Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |