[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] Resizing shells in shell-mode

From: Jan Djärv
Subject: Re: [Patch] Resizing shells in shell-mode
Date: Sun, 25 May 2008 10:20:04 +0200
User-agent: Thunderbird (Macintosh/20080421)

Stefan Monnier skrev:

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.

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.

        Jan D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]