NetBSD Problem Report #16286
Received: (qmail 27429 invoked from network); 10 Apr 2002 13:44:17 -0000
Message-Id: <200204101343.g3ADhHq02235@precedence.co.uk>
Date: Wed, 10 Apr 2002 14:43:17 +0100 (BST)
From: netbsd@precedence.co.uk
Reply-To: netbsd@precedence.co.uk
To: gnats-bugs@gnats.netbsd.org
Subject: dialog can't read screeen size on 1.5
X-Send-Pr-Version: 3.95
>Number: 16286
>Category: pkg
>Synopsis: dialog screen size wrong with curses lib in 1.5.2
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 10 13:45:00 +0000 2002
>Closed-Date: Mon Apr 22 13:08:45 +0000 2002
>Last-Modified: Fri Apr 28 21:33:08 +0000 2006
>Originator: Stephen Borrill
>Release: NetBSD 1.5.2
>Organization:
Precedence Technologies Ltd
>Environment:
System: NetBSD netmanager 1.5.2 NetBSD 1.5.2 (phil) #1: Thu Jan 31 11:08:49 GMT 2002 root@netmanager:/usr/src/sys/arch/i386/compile/phil i386
>Description:
dialog requires stderr to be redirected as the user's choice on a menu is sent
to stderr. It also aims to centre the menu created on the screen
(irrespective of the terminal size). On NetBSD 1.4, dialog depended on the
ncurses package and dialog worked as required; when stderr was redirected the
menu was correctly centred. With NetBSD 1.5, dialog uses the curses
libraries in /usr/lib and the behaviour is incorrect. Menus are centred
correctly if stderr is _not_ redirected. If stderr _is_ redirected, then
dialog behaves as though it is on an 80x24 terminal. On an large terminal,
this is unsightly and poor use of screen real estate. Moreover, as not all
dialog functions require redirection of stderr, the displays alter in size.
>How-To-Repeat:
Install pkgsrc/misc/dialog on NetBSD 1.4.3 and NetBSD 1.5.2. Open a 132x48
terminal instead of 80x24. Run the following command in the Bourne shell:
dialog --menu Title 10 40 3 A Item 2> /dev/null
The menu will be squashed up in the top left 80x24 characters.
>Fix:
Declare NetBSD 1.5.x as having an incompatible curses. This has not been
tested on -current, so 1.5[A-Z]* (or such like) may need adding too.
--- Makefile.orig Wed Apr 10 14:38:20 2002
+++ Makefile Wed Apr 10 14:26:41 2002
@@ -8,6 +8,8 @@
MAINTAINER= jlam@netbsd.org
COMMENT= Display dialog boxes from shell scripts
+INCOMPAT_CURSES = 1.5.*
+
USE_BUILDLINK_ONLY= # defined
USE_GMAKE= # defined
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Mon Apr 22 06:07:59 PDT 2002
State-Changed-Why:
I've committed a fix based on your suggestion.
From: Stephen Borrill <netbsd@precedence.co.uk>
To: matthew green <mrg@netbsd.org>
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: PR/16286 CVS commit: src/gnu/dist/gcc4
Date: Thu, 20 Apr 2006 12:55:07 +0100 (BST)
On Thu, 20 Apr 2006, matthew green wrote:
> The following reply was made to PR pkg/16286; it has been noted by GNATS.
> From: matthew green <mrg@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: PR/16286 CVS commit: src/gnu/dist/gcc4
<snip huge list of files which took 10 minutes to delete with pine>
This has nothing to do with me or PR/16286...
--
Stephen
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.