4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When stdout is piped through "tee", the size of the screen may not
13 Solution: Use stdin instead of stdout for ioctl() when stdin is a tty and
18 *** ../vim-6.2.113/src/os_unix.c Sat Sep 27 19:36:47 2003
19 --- src/os_unix.c Wed Oct 1 15:33:39 2003
23 * 1. try using an ioctl. It is the most accurate method.
25 ! * Try using TIOCGWINSZ first, some systems that have it also define TIOCGSIZE
26 ! * but don't have a struct ttysize.
32 ! if (ioctl(1, TIOCGWINSZ, &ws) == 0)
38 * 1. try using an ioctl. It is the most accurate method.
40 ! * Try using TIOCGWINSZ first, some systems that have it also define
41 ! * TIOCGSIZE but don't have a struct ttysize.
48 ! /* When stdout is not a tty, use stdin for the ioctl(). */
49 ! if (!isatty(fd) && isatty(read_cmd_fd))
51 ! if (ioctl(fd, TIOCGWINSZ, &ws) == 0)
61 ! if (ioctl(1, TIOCGSIZE, &ts) == 0)
71 ! /* When stdout is not a tty, use stdin for the ioctl(). */
72 ! if (!isatty(fd) && isatty(read_cmd_fd))
74 ! if (ioctl(fd, TIOCGSIZE, &ts) == 0)
78 *** ../vim-6.2.113/src/version.c Sun Oct 12 17:10:47 2003
79 --- src/version.c Sun Oct 12 17:12:48 2003
83 { /* Add new patch number below this line */
89 hundred-and-one symptoms of being an internet addict:
90 178. You look for an icon to double-click to open your bedroom window.
92 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
93 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
94 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
95 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///