Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Extended Commands - Can't write a #

259 views
Skip to first unread message

Toon

unread,
Oct 19, 2009, 6:38:50 AM10/19/09
to
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?

Thanks

APLer

unread,
Oct 19, 2009, 12:17:47 PM10/19/09
to
Toon <too...@gmail.com> wrote in
news:2471f0e8-76cf-4371...@m38g2000yqd.googlegroups.com:

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.

James

unread,
Oct 21, 2009, 5:21:52 AM10/21/09
to
On Oct 19, 11:38 am, Toon <too...@gmail.com> wrote:
> 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

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

James

unread,
Oct 21, 2009, 5:23:39 AM10/21/09
to
On Oct 19, 5:17 pm, APLer <AP...@floor.tilde> wrote:

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

Pasi Kallinen

unread,
Oct 21, 2009, 10:10:03 AM10/21/09
to

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

APLer

unread,
Oct 21, 2009, 5:55:41 PM10/21/09
to
James <james...@gmail.com> wrote in
news:91cd182b-b1e6-4170...@d34g2000vbm.googlegroups.com:

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?


7aboir

unread,
Oct 22, 2009, 5:24:07 PM10/22/09
to
APLer <AP...@floor.tilde> wrote in news:Xns9CAB91B...@127.0.0.1:

> Don't change your nick. It makes people think you may be a troll
LOL!

Ray

unread,
Oct 23, 2009, 4:35:02 AM10/23/09
to
James wrote:

> 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

James

unread,
Oct 23, 2009, 5:40:53 AM10/23/09
to
On Oct 21, 10:55 pm, APLer <AP...@floor.tilde> wrote:

> > 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

Kent Paul Dolan

unread,
Oct 24, 2009, 7:04:57 AM10/24/09
to
Toon wrote:

> 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.

Toon

unread,
Nov 4, 2009, 9:00:40 AM11/4/09
to
I can't copy/paste the # sign from the charactermap. I cant do ctrl+V
in maphack, and I cant rightclick and select paste.

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!


TJR

unread,
Nov 4, 2009, 9:53:38 AM11/4/09
to
I have a similar problem using tiles on OS X: \ is not available.My
solution is to temporarily switch to US keyboard layout for this one
keystroke only.
0 new messages