Bug#986578: nethack-console: ncurses not enabled in build

Reiner Herrmann reiner at reiner-h.de
Wed Apr 7 20:07:43 BST 2021


Hi Tobias,

$ NETHACKOPTIONS=windowtype:curses nethack

this worked here for me with only nethack-console being installed.
Then I installed also nethack-x11 and got the same error as you.

Though when directly invoking nethack-console, it still works:
$ NETHACKOPTIONS=windowtype:curses nethack-console
(When starting it via .desktop it should also work, as this
executes nethack-console)

I think the problem is that nethack-x11 has a higher alternative
priority for "nethack", and the wrapper script
(/usr/lib/games/nethack/nethack-x11.sh or /usr/lib/games/nethack/nethack-x11-tty.sh)
calls the nethack-x11 binary which does not have ncurses support
enabled. (And I'm not sure if nethack-x11/-qt should support it.)

Other frontends have a similar problem.
E.g. when nethack-qt and nethack-x11 are installed and you try to start
the Qt version:

$ NETHACKOPTIONS=windowtype:qt nethack
 * Window type qt not recognized.  Choices are:  tty, X11.

I'm not sure if you are supposed so set this option.
Is this documented somewhere?
When you want to choose a different frontend you could
just run the wrapper scripts (nethack-{console,x11,qt}).

Kind regards,
  Reiner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20210407/4f870150/attachment.sig>


More information about the Pkg-games-devel mailing list