From owner-freebsd-current Sun Mar 26 21:41:50 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA04729 for current-outgoing; Sun, 26 Mar 1995 21:41:50 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id VAA04723 for ; Sun, 26 Mar 1995 21:41:47 -0800 Received: by sequent.kiae.su id AA04338 (5.65.kiae-2 ); Mon, 27 Mar 1995 08:36:20 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Mon, 27 Mar 95 08:36:19 +0300 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id JAA00257; Mon, 27 Mar 1995 09:33:14 +0400 To: Bob Willcox Cc: freebsd-current@freefall.cdrom.com References: In-Reply-To: ; from Bob Willcox at Sun, 26 Mar 1995 21:19:45 -0600 (CST) Message-Id: Organization: Olahm Ha-Yetzirah Date: Mon, 27 Mar 1995 09:33:13 +0400 X-Mailer: Mail/@ [v2.32 FreeBSD] From: "Andrey A. Chernov, Black Mage" X-Class: Fast Subject: Re: tgetnum wierdness on -current Lines: 50 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 2375 Sender: current-owner@FreeBSD.org Precedence: bulk In message Bob Willcox writes: >Andrey A. Chernov, Black Mage wrote: >> >> In message Bob Willcox writes: >> >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. >> >> What do you mean by "executed in a remote xterm"? >> As I understand, you need to check environment (TERM,TERMCAP) >> and termcap file on _remote_ system... >>From an xterm on one system (running FreeBSD 1.1.5.1) I am rlogining >into another system (running FreeBSD -current built today). The >termcap file on the remote (-current) system looks ok and has a >line count of 24 (li#24). However, if I do a tgetnum("li") (or >the tput li command) the output value is 65. From a virtual console >or xterm on the -current system I get the correct output from >tgetnum("li"). Terminal entry can comes from various sources: /usr/share/misc/termcap ~/.termcap $TERMCAP f.e. To be shure just use one of the tests coming from lib/termlib/TEST, I think it is test1, compile it on -current with -ltermcap and run it on remote xterm. It just print out terminal entry, then seek li= there. If li=65, check various sources mentioned above, if all of them says li=24, there can be bug in tgetent, if all sources and output says li=24, there is bug in tgetnum. >The application in question is files-2.2p1 that I am trying to port >to run on FreeBSD. Whenever it receives a SIGWINCH signal it >terminates the current window by calling endwin() then reinstates >it by calling initscr(). It also calls wrefresh() for each of its >logical windows plus a number of other initializations. It is right method when window changes. Please specify more detaily which ioctl failed in setterm(). >I can email you the file that handles all of this if you would like >(its about 1000 lines). I have had little experience with curses >and can't really tell if what is being done is ligitmate or not. I don't have enough time now... -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849