Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40292

Summary: Request: Nethack should install console interface as well as graphical interface.
Product: Gentoo Linux Reporter: Alastair Murray <alastairmurray>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: enhancement CC: nrussell
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alastair Murray 2004-02-03 10:13:13 UTC
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.

...
Comment 1 Nathan Russell 2004-02-03 14:38:20 UTC
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.  
Comment 2 SpanKY gentoo-dev 2004-02-03 15:02:16 UTC
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 ?
Comment 3 Nathan Russell 2004-02-03 15:10:06 UTC
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?  
Comment 4 Nathan Russell 2004-02-04 07:26:00 UTC
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
Comment 5 Nathan Russell 2004-02-04 07:28:22 UTC
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.  
Comment 6 Nathan Russell 2004-02-14 22:59:06 UTC
In view of the above, is there a reason this needs to be still open?  
Comment 7 SpanKY gentoo-dev 2004-02-14 23:10:27 UTC
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 ?
Comment 8 Nathan Russell 2004-02-14 23:14:05 UTC
Yep.  
Comment 9 SpanKY gentoo-dev 2004-02-14 23:20:55 UTC
roger :)
Comment 10 Nathan Russell 2004-02-14 23:22:37 UTC
Just for completeness I believe it can be set in the controlling shell somehow too :)