Debian bug report logs - #1314 ncurses fails in silly way on TERM=dumb Package: ncurses-developer ; Reported by: Ian Jackson , Bill Mitchell ; 56 days old . ----------------------------------------------------------------------- Message received at debian-bugs: From cus.cam.ac.uk!iwj10 Thu Sep 7 05:16:00 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sqfs7-000F6gC; Thu, 7 Sep 95 05:15 PDT Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA08020 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 7 Sep 1995 05:15:46 -0700 Received: by bootes.cus.cam.ac.uk (Smail-3.1.29.0 #36) id m0sqfs2-000C0JC; Thu, 7 Sep 95 13:15 BST Received: by chiark id (Debian /\oo/\ Smail3.1.29.1 #29.33); Wed, 6 Sep 95 20:13 BST Message-Id: Date: Wed, 6 Sep 95 20:13 BST From: Ian Jackson To: debian-bugs@Pixar.com Subject: Re: Bug#1314: ncurses fails in silly way on TERM=dumb In-Reply-To: References: Bruce Perens writes ("Re: Bug#1314: ncurses fails in silly way on TERM=dumb "): > This may still be a documentation bug, but here's how to perform the test: > > To test if a terminal has cursor addressing: > char * s; > if ( (s = tigetstr("cup")) != 0 && *s != 0 ) > /* Terminal has cursor addressing */ > > This is usually sufficient to weed out the dumb terminals and hardcopy > devices. If your program depends on standout, you can add a similar test > for that capability. Thanks. I'll include this in 0.93.73. Ian. ----------------------------------------------------------------------- Acknowledgement sent to Ian Jackson : Extra info received and forwarded. Full text available. ----------------------------------------------------------------------- Information forwarded to debian-devel@pixar.com : Bug#1314 ; Package ncurses-developer . Full text available. ----------------------------------------------------------------------- Message received at debian-bugs: From pixar.com!bruce Tue Sep 5 17:23:13 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sq8Gm-000EKcC; Tue, 5 Sep 95 17:23 PDT Received: from mongo.pixar.com by pixar.com with SMTP id AA29501 (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Tue, 5 Sep 1995 17:23:00 -0700 Received: by mongo.pixar.com (Smail3.1.28.1 #15) id m0sq8Fj-000EKcC; Tue, 5 Sep 95 17:22 PDT Message-Id: X-Mailer: exmh version 1.6.2 7/18/95 To: Ian Jackson , Bill Mitchell , debian-bugs@Pixar.com Cc: bruce@Pixar.com Subject: Re: Bug#1314: ncurses fails in silly way on TERM=dumb In-Reply-To: Your message of "Tue, 05 Sep 1995 21:41:00 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Sep 1995 17:22:07 -0700 From: Bruce Perens This may still be a documentation bug, but here's how to perform the test: To test if a terminal has cursor addressing: char * s; if ( (s = tigetstr("cup")) != 0 && *s != 0 ) /* Terminal has cursor addressing */ This is usually sufficient to weed out the dumb terminals and hardcopy devices. If your program depends on standout, you can add a similar test for that capability. Thanks Bruce -- -- Attention Radio Amateurs: For information on "Linux for Hams", -- read the WWW page http://www.hams.com/LinuxForHams, -- or e-mail the word "help" to info@hams.com ----------------------------------------------------------------------- Acknowledgement sent to Bruce Perens : Extra info received and forwarded. Full text available. ----------------------------------------------------------------------- Information forwarded to debian-devel@pixar.com : Bug#1314 ; Package ncurses-developer . Full text available. ----------------------------------------------------------------------- Message received at debian-bugs: From cus.cam.ac.uk!iwj10 Tue Sep 5 14:04:20 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sq5AJ-000FGAA; Tue, 5 Sep 95 14:04 PDT Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA20090 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Tue, 5 Sep 1995 14:04:04 -0700 Received: by bootes.cus.cam.ac.uk (Smail-3.1.29.0 #36) id m0sq59b-000C0AA; Tue, 5 Sep 95 22:03 BST Received: by chiark id (Debian /\oo/\ Smail3.1.29.1 #29.33); Tue, 5 Sep 95 21:41 BST Message-Id: Date: Tue, 5 Sep 95 21:41 BST From: Ian Jackson To: Debian bugs submission address Reply-To: Ian Jackson , Bill Mitchell Cc: Bill Mitchell Subject: ncurses fails in silly way on TERM=dumb Precedence: air-mail Package: ncurses-developer Version: 1.9.3-1 chiark:~> TERM=dumb dselect Debian GNU/Linux `dselect' package handling frontend. * 0. [A]ccess Choose the access method to use. 1. [U]pdate Update list of available packages, if possible. 2. [S]elect Select which packages to install (or deinstall). 3. [I]nstall Install selected software. 4. [C]onfig Configure packages that are unconfigured. 5. [R]emove Remove software selected for deinstallation. 6. [Q]uit Quit dselect. Use ^P and ^N, cursor keys, initial letters, or digits to select;Press ENTER to confirm selection. ^L to redraw screen. Version 0.93.72. Copyright (C) 1994,1995 Ian Jackson. This isfree software; see the GNU General Public Licence version 2 or later forcopying conditions. There is NO warranty. See dselect --licence for details. 0. [A]ccess Choose the access method to use. * 6. [Q]uit Quit dselect. chiark:~> As you can see, no terminal movement strings were sent, however ncurses doesn't appear to have given any indication to dselect that things weren't proceeding appropriately. The ncurses manpages don't appear to document the need to make a special `powerful-enough' check call. Ian. ----------------------------------------------------------------------- Acknowledgement sent to Ian Jackson , Bill Mitchell : New bug report received and forwarded. Full text available. ----------------------------------------------------------------------- Report forwarded to debian-devel@pixar.com : Bug#1314 ; Package ncurses-developer . Full text available. ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov