Date: Mon, 27 Mar 1995 18:56:12 -0600 (CST) From: bob@obiwan.pmr.com (Bob Willcox) To: dfr@nlsys.demon.co.uk (Doug Rabson) Cc: ache@astral.msk.su, freebsd-current@freefall.cdrom.com Subject: Re: tgetnum wierdness on -current Message-ID: <m0rtPZt-00030qC@obiwan.pmr.com> In-Reply-To: <Pine.BSF.3.91.950327210025.301A-100000@nlsys.demon.co.uk> from "Doug Rabson" at Mar 27, 95 09:06:26 pm
index | next in thread | previous in thread | raw e-mail
Doug Rabson wrote:
>
> On Mon, 27 Mar 1995, Bob Willcox wrote:
>
> > [snip]
> >
> > to get the new window sizes (which works). Then it does an initscr()
> > which calls setterm() which attempts an
> >
> > ioctl(STDERR_FILENO, TIOCGWINSZ, &win)
>
> This is bogus. It should be using the internal variable __tty_fileno
> which is set up when curses initialises. Unless anyone can think of a
> good reason that it is using stderr, I will change this.
Changing the ioctl in setterm() to use __tty_fileno did, indeed, fix
the problem with resizing windows in files. Thanks.
--
Bob Willcox ...!{rutgers|ames}!cs.utexas.edu!uudell!obiwan!bob
Austin, TX or: @uudell.us.dell.com:obiwan!bob
512-258-4224 (home), 512-838-3914 (work) or: obiwan%bob@uunet.uu.net
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0rtPZt-00030qC>
