Your message dated Tue, 20 Sep 2022 18:24:31 +0200
with message-id <[email protected]>
and subject line Re: nethack-console: Starting nethack when the terminal has 
>255 columns results in bad display
has caused the Debian Bug report #335198,
regarding nethack-console: Starting nethack when the terminal has >255 columns 
results in bad display or segmentation fault
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
335198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335198
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nethack-console
Version: 3.4.3-7
Severity: normal

When starting nethack from a terminal with >255 lines, the display is
quite badly messed up. The effect is as if Nethack has interpreted the
terminal as having (far) fewer columns that it actually does, trying to
display text in a narrow strip down the left hand side of the terminal.

If the terminal has 256-258 (inclusive) columns, only one column is used
to display text. For n columns, where n >= 258 and n < 512, n-257
columns will be used to display the text. It appears that the problem
recurs as the terminals get wider. With 512-514 (inclusive) on the
terminal, only 1 columns gets used for displaying text. For >=514
columns (presumably up to 767 columns, though I've not tested this), if
there are n columns in the terminal, n-513 columns are used to display
the text.

For reference, these observations were made under X-based terminals
(Eterm, aterm and xterm), all giving the same results. To give you an
example, here is the initial display after running nethack with a 266
column, 79 line terminal:

>>>

NetHack, 
Copyright
 1985-200
3
         
By Sticht
ing Mathe
matisch C
entrum an
d M. Step
henson.
         
See licen
se for de
tails.


Shall I p
ick a cha
racter's 
race, rol
e, gender
 and alig
nment for
 you? [yn
q] 
<<<

Blank lines at the bottom have been omitted. The result is text
formatted into 266-257=9 columns, which gets fairly unreadable as you
start to play!

It's worth noting that not everything is forced into these nine columns.
The game view and status line seem to display as normal, with all other
things (such as the inventory, the extmenu and the like) all being
crammed into the first nine columns. To illustrate that point, here's
the display on the same terminal after starting the game fully:

>>>
Velkommen Darkhorse, welcome to NetHack!  You are a neutral human Valkyrie.


                                     ------------
                                     |..$.......|
                                     +.....!d@..|
                                     --- --------
















Darkhorse
Dlvl:1  $
<<<

Please do let me know if I can provide any further information to help
solve this problem.

All the best,
-Dave.


Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.1
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages nethack-console depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libncurses5                   5.4-9      Shared libraries for terminal hand
ii  nethack-common                3.4.3-7    Common files for Nethack dungeon c

nethack-console recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Control: tags -1 fixed-upstream
Control: fixed -1 3.6.0-1
Control: forwarded: 
https://github.com/NetHack/NetHack/commit/eef41ba4a83b7b291e0785899c2f9ab24f1c088d

This seems to be upstream bug C343-439; this seems to be fixed in 3.6.0-1, at 
least when looking at
the patch and the repo in salsa.debian.org


--
tobi

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to