From owner-freebsd-current Mon Mar 27 16:56:40 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA15733 for current-outgoing; Mon, 27 Mar 1995 16:56:40 -0800 Received: from obiwan.pmr.com ([199.98.84.130]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id QAA15727 for ; Mon, 27 Mar 1995 16:56:38 -0800 Received: by obiwan.pmr.com (Smail3.1.29.1 #4) id m0rtPZt-00030qC; Mon, 27 Mar 95 18:56 CST Message-Id: From: bob@obiwan.pmr.com (Bob Willcox) Subject: Re: tgetnum wierdness on -current To: dfr@nlsys.demon.co.uk (Doug Rabson) Date: Mon, 27 Mar 1995 18:56:12 -0600 (CST) Cc: ache@astral.msk.su, freebsd-current@freefall.cdrom.com In-Reply-To: from "Doug Rabson" at Mar 27, 95 09:06:26 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 823 Sender: current-owner@FreeBSD.org Precedence: bulk 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