emacs-devel
[Top][All Lists]
Advanced

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

Re: [Patch] Resizing shells in shell-mode


From: Stefan Monnier
Subject: Re: [Patch] Resizing shells in shell-mode
Date: Thu, 05 Jun 2008 02:24:28 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> 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




reply via email to

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