Debian bug report logs - #1314
ncurses fails in silly way on TERM=dumb

Package: ncurses-developer; Reported by: Ian Jackson <iwj10@cus.cam.ac.uk>, Bill Mitchell <mitchell@mdd.comm.mot.com>; 56 days old.

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Thu Sep  7 05:16:00 1995
Return-Path: <iwj10@cus.cam.ac.uk>
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 <m0sqPuB-0002ZZZ@chiark.al.cl.cam.ac.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Wed, 6 Sep 95 20:13 BST
Message-Id: <m0sqPuB-0002ZZZ@chiark.al.cl.cam.ac.uk>
Date: Wed, 6 Sep 95 20:13 BST
From: Ian Jackson <iwj10@cus.cam.ac.uk>
To: debian-bugs@Pixar.com
Subject: Re: Bug#1314: ncurses fails in silly way on TERM=dumb 
In-Reply-To: <m0sq8Fj-000EKcC@mongo.pixar.com>
References: <m0sq4nt-0002YOA@chiark.al.cl.cam.ac.uk>
	<m0sq8Fj-000EKcC@mongo.pixar.com>

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 <iwj10@cus.cam.ac.uk>:
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: <bruce@pixar.com>
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: <m0sq8Fj-000EKcC@mongo.pixar.com>
X-Mailer: exmh version 1.6.2 7/18/95
To: Ian Jackson <iwj10@cus.cam.ac.uk>,
        Bill Mitchell <mitchell@mdd.comm.mot.com>, 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."
             <m0sq4nt-0002YOA@chiark.al.cl.cam.ac.uk> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 05 Sep 1995 17:22:07 -0700
From: Bruce Perens <bruce@Pixar.com>

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 <bruce@Pixar.com>:
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: <iwj10@cus.cam.ac.uk>
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 <m0sq4nt-0002YOA@chiark.al.cl.cam.ac.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Tue, 5 Sep 95 21:41 BST
Message-Id: <m0sq4nt-0002YOA@chiark.al.cl.cam.ac.uk>
Date: Tue, 5 Sep 95 21:41 BST
From: Ian Jackson <iwj10@cus.cam.ac.uk>
To: Debian bugs submission address <debian-bugs@pixar.com>
Reply-To: Ian Jackson <iwj10@cus.cam.ac.uk>,
        Bill Mitchell <mitchell@mdd.comm.mot.com>
Cc: Bill Mitchell <mitchell@mdd.comm.mot.com>
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 <iwj10@cus.cam.ac.uk>, Bill Mitchell <mitchell@mdd.comm.mot.com>:
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