Bug 57410 - nethack can't open help file, history file in tty windowtype
Bug#: 57410 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: sey5020@mail.ru
Component: Games
URL: 
Summary: nethack can't open help file, history file in tty windowtype
Keywords:  
Status Whiteboard: 
Opened: 2004-07-17 12:54 0000
Description:   Opened: 2004-07-17 12:54 0000
emerged nethack-3.4.3-r1
with option : OPTIONS=windowtype:tty
don't show list of game commands, long description of commands, history of Nethack

Reproducible: Always
Steps to Reproduce:
1.set OPTIONS=windowtype:tty in nethack config file
2.start the game
3.Press "?" then "a"

Actual Results:  
Cannot open help

Expected Results:  
show help

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.2
6)
=================================================================
System uname: 2.4.26 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla
/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.uninett.no/pub/lin
ux/Gentoo ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif
 gpm gtk gtk2 imlib java jpeg kde libg++ libwww linguas_ru lirc mad mikmod mmx m
mx2 mozilla moznocompose moznoirc moznomail mpeg mysql ncurses nls nvidia oggvor
bis opengl oss pam pda pdflib perl png python qt quicktime readline samba sdl sp
ell sse ssl svga tcltk tcpd threads truetype v4l v4l2 x86 xinerama xml2 xmms xv 
zlib"

------- Comment #1 From Benoit Boissinot 2004-08-21 05:02:14 0000 -------
The problem is that since we use an external pager programm (cf bug #52122),
the help file shouldn't be in the DLB (which can only be read with the internal
pager).

the simplest solution is doing a

sed -i -e "s/DATNODLB =/DATNODLB = \$(DATHELP)/" Makefile

if we use an external pager.

------- Comment #2 From Chris Gianelloni (RETIRED) 2004-08-31 15:08:34 0000 -------
I'll look into it

------- Comment #3 From Mr. Bones. 2004-09-24 03:05:43 0000 -------
Snatched.

Reproduced the issue and tried the sed patch.  Worked a lot better so I commited it.