all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Antoine Levitt" <smeuuh@gmail.com>
Cc: "Jan Djärv" <jan.h.d@swipnet.se>, emacs-devel@gnu.org
Subject: Re: [Patch] Resizing shells in shell-mode
Date: Thu, 05 Jun 2008 02:24:28 -0400	[thread overview]
Message-ID: <jwv1w3ce6x2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <6fa54e4e0805250526w6635385cu4a8a685c5187d0@mail.gmail.com> (Antoine Levitt's message of "Sun, 25 May 2008 14:26:06 +0200")

> I tested it, it works. I used a simple C program :
> #include <sys/ioctl.h>
> #include <stdio.h>
> #include <fcntl.h>
> int main(int argc, char **argv)
> {
>     int fd = open(argv[1], O_RDWR);
>     struct winsize sz;
>     sz.ws_row = atoi(argv[2]);
>     sz.ws_col = atoi(argv[3]);
>     ioctl(fd, TIOCSWINSZ, &sz);
>     return 0;
> }

There's already a Lisp function to do it (written in C), called
`set-process-window-size'.


        Stefan




      parent reply	other threads:[~2008-06-05  6:24 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
2008-05-25 12:26     ` Antoine Levitt
2008-05-25 14:43       ` Miles Bader
2008-06-05  6:24       ` Stefan Monnier [this message]

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=jwv1w3ce6x2.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --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.