Subject: pkg/16286: dialog can't read screeen size on 1.5
To: None <>
From: None <>
List: netbsd-bugs
Date: 04/10/2002 14:43:17
>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 10 06:45:00 PDT 2002
>Originator:     Stephen Borrill
>Release:        NetBSD 1.5.2
Precedence Technologies Ltd
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

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.
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.

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 @@
 COMMENT=	Display dialog boxes from shell scripts
 USE_GMAKE=		# defined