all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Antoine Levitt <smeuuh@gmail.com>, emacs-devel@gnu.org
Subject: Re: [Patch] Resizing shells in shell-mode
Date: Sun, 25 May 2008 10:20:04 +0200	[thread overview]
Message-ID: <48392134.6050309@swipnet.se> (raw)
In-Reply-To: <jwv7idjsewz.fsf-monnier+emacs@gnu.org>



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.




  parent reply	other threads:[~2008-05-25  8:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-24 18:38 [Patch] Resizing shells in shell-mode Antoine Levitt
2008-05-24 19:04 ` Stefan Monnier
2008-05-24 20:23   ` Antoine Levitt
2008-05-24 20:47     ` Stefan Monnier
2008-05-24 20:56     ` Miles Bader
2008-05-24 21:58       ` Antoine Levitt
2008-05-25  8:20   ` Jan Djärv [this message]
2008-05-25 12:26     ` Antoine Levitt
2008-05-25 14:43       ` Miles Bader
2008-06-05  6:24       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48392134.6050309@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=smeuuh@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.