Solved NetHack - X11 GUI problem.

Greetings to everyone.

I wanted to play to the last version of NetHack, that is to say NetHack 3.6.4. So I compiled it from the ports (games/nethack36) for my main worklstation on FreeBSD 12.1-RELEASE-p1 GENERIC amd64. The problem is that I only get the CLI version of the NetHack which is sure quite playable, but I am much more accustomed to the X11 tile version of it.

When I build the game from the ports, I notice some build option like :

-DX11_GRAPHICS -DUSE_TILES

So it think NetHack is indeed built with X11 GUI. But when I run the "nethack36" command I only get the terminal version.

Well, did anyone knows how to start the X11 GUI NetHack version ?

Thank you very much in advance.
 
Here's what I got from pkg info nethack36 :

nethack36-3.6.4
Name : nethack36
Version : 3.6.4
Installed on : Fri Jan 10 12:56:36 2020 CET
Origin : games/nethack36
Architecture : FreeBSD:12:amd64
Prefix : /usr/local
Categories : games
Licenses : nethack
Maintainer : glewis@FreeBSD.org
WWW : http://www.nethack.org/
Comment : Dungeon explorin', slashin', hackin' game
Options :
DOCS : on
Shared Libs required:
libXpm.so.4
libXt.so.6
libSM.so.6
libXext.so.6
libXmu.so.6
libXaw.so.7
libICE.so.6
libX11.so.6
Annotations :
FreeBSD_version: 1201000
Flat size : 4.79MiB
Description :
This is nethack, a classic hack'n'slash adventure game.
You and your faithful feline (or commited canine) are on a quest
to retrieve the lost Amulet of Yendor. Good luck!

WWW: http://www.nethack.org/
 
That shows it's been built with X support. How are you starting it? It's been a while but I suspect it's either not detecting DISPLAY or can't open it and then falls back to the CLI version.
 
I launch it from my terminal (konsole) with the command nethack36.

I edit this message to let know that it works now. Indeed it was an option in .nethackrc. In fact I was used to play on GNU/Linux, and generally we did not had to add this option. In fact I did not even know this option existed.

Thank you very much for your fast responses !
 
Back
Top