From owner-freebsd-current Sun Mar 26 15:52:58 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA20188 for current-outgoing; Sun, 26 Mar 1995 15:52:58 -0800 Received: from obiwan.pmr.com ([199.98.84.130]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id PAA20168 for ; Sun, 26 Mar 1995 15:52:54 -0800 Received: by obiwan.pmr.com (Smail3.1.29.1 #4) id m0rt26U-000300C; Sun, 26 Mar 95 17:52 CST Message-Id: From: bob@obiwan.pmr.com (Bob Willcox) Subject: Re: tgetnum wierdness on -current To: ache@astral.msk.su (Andrey A. Chernov, Black Mage) Date: Sun, 26 Mar 1995 17:52:18 -0600 (CST) Cc: freebsd-current@freefall.cdrom.com In-Reply-To: from "Andrey A. Chernov, Black Mage" at Mar 27, 95 03:22:01 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1449 Sender: current-owner@FreeBSD.org Precedence: bulk Andrey A. Chernov, Black Mage wrote: > > In message Bob Willcox writes: > > >On -current I have observed that tgetnum will *always* return 65 > >for the number of lines when running in a remote xterm (running on > >a 1.1.5.1 system w/XFree86 3.1.1). A local xterm or the console > >seems to be correct. Is there a known compatibility problem between > >-current and 1.1.5.1 with xterms or is it likely that I'm doing > >something wrong? > > I don't see any problem here, tgetnum("li") always return > what exactly specified in termcap, nothing more. > It is per-program task use ioctl to get window dims. Except that here my xterm termcap entry specifies line number as 24, yet tgetnum("li") returns 65 when executed in a remote xterm, regardless of window size or termcap setting. On a related problem I'm having, the ioctl call in setterm() in curses is failing on the second and subquent calls to setterm(). (This is why I saw the tgetnum("li") problem.) It works ok the first time, but resizing the window exposes the failure when the application does another initscr(). The application (and curses) then thinks the window has 65 rows and misbehaves accordingly. -- 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