Now I've been playing a knight for the first time and I want to ride
my Pony. I have to use the #ride command but I'm unable to type a #
sign in nethack. I don't remember having problems with this in the
past.
Note: I have a azerty keyboard. And to write a # I have to press ALT+3
What do I need to change in defaults.nh so I can use all the extended
commands?
Thanks
That may depend on your OS, keyboard and country/region setting. In other
words what is your keyboard type defined to and what *specific* keyboard
do you have. If you see a # key above the 3 and a / beside the right shift
it should be US English. The keyboard type is *not* the country you are
in, just to make this clear.
> Now I've been playing a knight for the first time and I want
> to ride my Pony. I have to use the #ride command but I'm
> unable to type a # sign in nethack. I don't remember having
> problems with this in the past.
> Note: I have a azerty keyboard. And to write a # I have to
> press ALT+3
Then you should be able to do this in nethack as well. (In
general, an azerty keyboard doesn't have a '#' character. Most
azerty keyboards used on computers do allow it to be entered,
using the alt key, but its position isn't standardized. Alt-3
is what the French keyboard drivers in Windows use, however, and
I imagine a lot of other systems emulate this.)
> What do I need to change in defaults.nh so I can use all the
> extended commands?
I'm not sure off hand how nethack manages its keyboard. I just
installed a default version from the net here, and set my
keyboard to French, and ALT-3 got me into the extended commands.
(I usually have the keyboard set to US, of course, since I write
more in C++ than in French:-).)
--
James Kanze
I forgot to mention: this was on Windows. If I remember, I'll
give it a try under Linux this week-end. (I don't have access
to anything but Windows at the moment.)
--
James Kanze
http://nethack.wikia.com/wiki/Subkeyvalue
There's some examples in sys/winnt/defaults.nh, but only for
finnish keyboard, so no guarantees they work for you:
# For \, @, $, [, |
OPTIONS=subkeyvalue:171/92
OPTIONS=subkeyvalue:178/64
OPTIONS=subkeyvalue:180/36
OPTIONS=subkeyvalue:184/91
OPTIONS=subkeyvalue:188/124
No idea how to find what values you should put in there, either,
as I don't use Windows.
--
Pasi Kallinen
pa...@alt.org
http://bilious.homelinux.org/ -- NetHack Patch Database
Don't change your nick. It makes people think you may be a troll - of
which usenet is innundated. You're taking the wrong tack here - it can be
just as wrong in MS windows as it can be in Linux and for the same
reasons: it's one easy to get at setting that anyone can change. So change
it back. In control panel look for keyboard and change the keyboard to US
English and try that. Unless you have a custom keyboard with foreign
characters on it such as the spanish upside down "?" or the french
cedille, it *will* be right. You want *specifically* US 101. As I said
*what* keyboard do you have?
> On Oct 19, 5:17 pm, APLer <AP...@floor.tilde> wrote:
>> Toon <too...@gmail.com> wrote
>>I have to use the #ride command but I'm unable to type a #
>> > sign in nethack.
<clip>
>> That may depend on your OS, keyboard and country/region setting.
<clip>
> I forgot to mention: this was on Windows.
<clip>
If it's on windows, then regardless of settings, keyboard
layout, etc, you can type a # sign as follows.
First, depress the 'alt' key.
Second, type '43' on the numeric keypad.
Third, release the 'alt' key.
Bear
> > On Oct 19, 5:17 pm, APLer <AP...@floor.tilde> wrote:
> >> Toon <too...@gmail.com> wrote
> >> innews:2471f0e8-76cf-4371...@m38g2000yqd.googlegroups.com
> >> :
> >> > Nethack features extented commands like #pray and #rub. I
> >> > do not have to type #rub because ALT+R works.
> >> > Now I've been playing a knight for the first time and I
> >> > want to ride my Pony. I have to use the #ride command but
> >> > I'm unable to type a # sign in nethack. I don't remember
> >> > having problems with this in the past.
> >> > Note: I have a azerty keyboard. And to write a # I have
> >> > to press ALT+3
> >> > What do I need to change in defaults.nh so I can use all
> >> > the extended commands?
> >> That may depend on your OS, keyboard and country/region
> >> setting. In other words what is your keyboard type defined
> >> to and what *specific* keyboard do you have. If you see a #
> >> key above the 3 and a / beside the right shift it should be
> >> US English. The keyboard type is *not* the country you are
> >> in, just to make this clear.
> > I forgot to mention: this was on Windows. If I remember,
> > I'll give it a try under Linux this week-end. (I don't have
> > access to anything but Windows at the moment.)
> Don't change your nick.
I don't have a nick. I only post under my real name (always
with surname as well, since I'm not the only James around).
> It makes people think you may be a troll - of which usenet is
> innundated. You're taking the wrong tack here - it can be just
> as wrong in MS windows as it can be in Linux and for the same
> reasons: it's one easy to get at setting that anyone can
> change. So change it back. In control panel look for keyboard
> and change the keyboard to US English and try that. Unless you
> have a custom keyboard with foreign characters on it such as
> the spanish upside down "?" or the french cedille, it *will*
> be right. You want *specifically* US 101. As I said *what*
> keyboard do you have?
I'm having difficulty parsing that last part, but yes, if you
install the driver for a US keyboard, # will be shift-3. What's
engraved on the keytops doesn't mean anything; it's the keyboard
driver that decides what you get. I do this all the time:
since most of my work is in C++, I need keys like {}|[ and ],
which are awkward, to put it mildly, on the French and German
keyboards which I've mostly used in the past. So I just install
the three drivers: US, French and German, and switch between
them according to what I'm doing. (I'm currently working in
London, with a UK keyboard, but I've set it up for US, French
and German as usual.)
Modern Linux seems to have adopted this feature from Windows,
but I can remember when you needed to play games with xmodmap to
achieve this, and that's still the case under Solaris.
None of which really clarifies where his problem is. He's using
a French keyboard (according to his posting), so #, if present,
is an extension, and he needs the alt key to get it. Nethack
uses some fairly low level read routines, and may be detecting
the alt key, interpreting the other information differently when
it is present, and so missing the #, but I didn't have that
problem here, under Windows XP, using the French keyboard
driver, with the standard pre-compiled binaries for Windows (in
tty mode---no tiles, and with the standard options).
--
James Kanze
> Nethack features extended commands like #pray and
I don't have a direct solution in that direction.
You've been given several possible approaches to
typing a "#" into NetHack.
One more grotesquely awkward way is to open the
character map tool, put a "#" off the map into the
copy and paste widget, then copy and paste the "#"
from there to NetHack each time you want to use an
extended command.
Menu layouts differ, but in my version of Windows
XP, that tool is at:
Start =>
Programs =>
Accessories =>
System Tools =>
Character Map
Hope that helps.
xanthian.
I downloaded the Dos version of nethack, I have to run it in dosbox
else it wont work. (I'm on Windows 7)
And there it works! I can just press Alt + 3 and I get my #-sign
In the Windows Version it says: "Unknown Command 'M-'".
Now I would like it to work in the Windows Version so I don't have to
use dosbox, but it's isn't a big deal if that's not possible.
You need MSDOS to ride a pony!