I just emerged nethack and found that running /usr/games/bin/nethack results in a qt interface coming up for nethack (due to my USE="X qt -gnome"). But, there is no console interface. To do this I would need to: USE="-X -qt -gnome" emerge nethack However, I would like to have both the qt and the console interface installed as which one I use varies. So running nethack-console (or similar) would result in the traditional nethack, nethack-qt would result in the qt interface etc (which of course would only be compiled if USE="qt"). Reproducible: Always Steps to Reproduce: 1.USE="X qt -gnome" emerge nethack 2. 3. Actual Results: A qt interface for nethack is installed. Expected Results: Installed both a qt interface and the traditional console interface. ...
Agreed. This could be done with a change of 2-3 lines in the ebuild, and perhaps a meg of HDD. As it stands, Gentoo is explicitely patching Nethack to enable the graphics.
perhaps i missed something but i dont see how changing '2-3 lines in the ebuild' would 'fix' this ... wouldnt you have to recompile a bunch of files to get different interfaces ?
From what I can tell, when you compile the original source for nethack (as downloaded from nethack.org) you get the console interface. Maybe make a new nethack-cli package or something? Or, simple, when use flags X Y and Z are enabled, create both graphical binaries and also the binaries you would normally create?
Fix: copy /etc/skel/.nethackrc to your home directory, open in your favorite editor, set or uncomment a line saying OPTIONS=windowtype:tty You end up with a slightly larger executable that, by changing that line, can run in a number of ways. Nathan
Oh, you'll need to open it in something with a dark background (e.g. not xterm with the default settings) or some stuff may be hard to see, but that's a different issue.
In view of the above, is there a reason this needs to be still open?
i kind of missed it ... you saying even if you enable say GTK and X interfaces, you can still play in console via 'OPTIONS=windowtype:tty' in your .nethackrc ?
Yep.
roger :)
Just for completeness I believe it can be set in the controlling shell somehow too :)