Can I change the movement keys in NetHack?Avoiding hunger in NethackDetermining beginnerness in NetHackA strategy for Nethack progress?New to nethack: playing wizardCan't go downstairs in Nethack?Nethack keybord movement not workingHow can I kill myself in Nethack?Nethack: list of visited levelsHow can I polymorph in NetHack?Nethack numpad commands

What is the period of Langton's ant on a torus?

Zhora asks Deckard: "Are you for real?". Was this meant to be significant?

Demographic consequences of closed loop reincarnation

Why were these characters absent in Spider-Man: Far From Home?

"This used to be my phone number"

How to tell the object type of an Attachment

"Je suis petite, moi?", purpose of the "moi"?

How is Buchholz score calculated in a Swiss tournament?

What causes a rotating object to rotate forever without external force—inertia, or something else?

How to not confuse readers with simultaneous events?

What was the difference between a Games Console and a Home Computer?

What makes MOVEQ quicker than a normal MOVE in 68000 assembly?

Is Error correction and detection can be done with out adding extra bits?

Everyone but three

What did Jeremy Hunt mean by "slipped" to miss a vote?

The most secure way to handle someone forgetting to verify their account?

Why did Fury respond that way?

Is this Android phone Android 9.0 or Android 6.0?

How fast does a character need to move to be effectively invisible?

How to interpret a promising preprint that was never published?

How slow can a car engine run?

Desecrating Shabbos to ask a Gadol to daven for a patient?

How would you say "Sorry, that was a mistake on my part"?

Practical example in using (homotopy) type theory



Can I change the movement keys in NetHack?


Avoiding hunger in NethackDetermining beginnerness in NetHackA strategy for Nethack progress?New to nethack: playing wizardCan't go downstairs in Nethack?Nethack keybord movement not workingHow can I kill myself in Nethack?Nethack: list of visited levelsHow can I polymorph in NetHack?Nethack numpad commands






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








9















I recently downloaded NetHack, and have begun to play on my laptop. However, I find the directional key bindings rather cumbersome. I do not have a Number Pad, and would rather not use the NumLock function on my laptop's keyboard. So, I'm currently left to deal with the default non-numerical bindings for movement. These are very counter-intuitive.



The help file displays them as this:



y k u
|/
h-.-l
/|
b j n


When, in reality, they're laid out more like this:



 YU
HJKL.
BN


Is there any way to change this key binding to be less confusing - perhaps even using the actual directional keypad?










share|improve this question

















  • 10





    The good news is that after all that nethack, you'll be a whiz at VI!

    – Robb
    Jan 14 '11 at 5:30











  • You might think so but try playing ADOM after playing nethack or vica-versa!

    – NibblyPig
    Apr 7 '14 at 10:48

















9















I recently downloaded NetHack, and have begun to play on my laptop. However, I find the directional key bindings rather cumbersome. I do not have a Number Pad, and would rather not use the NumLock function on my laptop's keyboard. So, I'm currently left to deal with the default non-numerical bindings for movement. These are very counter-intuitive.



The help file displays them as this:



y k u
|/
h-.-l
/|
b j n


When, in reality, they're laid out more like this:



 YU
HJKL.
BN


Is there any way to change this key binding to be less confusing - perhaps even using the actual directional keypad?










share|improve this question

















  • 10





    The good news is that after all that nethack, you'll be a whiz at VI!

    – Robb
    Jan 14 '11 at 5:30











  • You might think so but try playing ADOM after playing nethack or vica-versa!

    – NibblyPig
    Apr 7 '14 at 10:48













9












9








9


1






I recently downloaded NetHack, and have begun to play on my laptop. However, I find the directional key bindings rather cumbersome. I do not have a Number Pad, and would rather not use the NumLock function on my laptop's keyboard. So, I'm currently left to deal with the default non-numerical bindings for movement. These are very counter-intuitive.



The help file displays them as this:



y k u
|/
h-.-l
/|
b j n


When, in reality, they're laid out more like this:



 YU
HJKL.
BN


Is there any way to change this key binding to be less confusing - perhaps even using the actual directional keypad?










share|improve this question














I recently downloaded NetHack, and have begun to play on my laptop. However, I find the directional key bindings rather cumbersome. I do not have a Number Pad, and would rather not use the NumLock function on my laptop's keyboard. So, I'm currently left to deal with the default non-numerical bindings for movement. These are very counter-intuitive.



The help file displays them as this:



y k u
|/
h-.-l
/|
b j n


When, in reality, they're laid out more like this:



 YU
HJKL.
BN


Is there any way to change this key binding to be less confusing - perhaps even using the actual directional keypad?







nethack keyboard






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 14 '11 at 2:39









IsziIszi

9,79656 gold badges137 silver badges234 bronze badges




9,79656 gold badges137 silver badges234 bronze badges







  • 10





    The good news is that after all that nethack, you'll be a whiz at VI!

    – Robb
    Jan 14 '11 at 5:30











  • You might think so but try playing ADOM after playing nethack or vica-versa!

    – NibblyPig
    Apr 7 '14 at 10:48












  • 10





    The good news is that after all that nethack, you'll be a whiz at VI!

    – Robb
    Jan 14 '11 at 5:30











  • You might think so but try playing ADOM after playing nethack or vica-versa!

    – NibblyPig
    Apr 7 '14 at 10:48







10




10





The good news is that after all that nethack, you'll be a whiz at VI!

– Robb
Jan 14 '11 at 5:30





The good news is that after all that nethack, you'll be a whiz at VI!

– Robb
Jan 14 '11 at 5:30













You might think so but try playing ADOM after playing nethack or vica-versa!

– NibblyPig
Apr 7 '14 at 10:48





You might think so but try playing ADOM after playing nethack or vica-versa!

– NibblyPig
Apr 7 '14 at 10:48










7 Answers
7






active

oldest

votes


















3














As far as I know, there's no way to remap the keys outside of a recompiling from source, or a crazy hack like using AutoHotKey to map entirely different keys on the keyboard to hjkl/yubn. Obviously that has side-effects though.



So you have a couple of options:



  1. You may not have an actual numpad, but most laptops have a mode that can "convert" part of the keyboard into a numpad, by holding down the "Fn" key, or using a "Fn Lock" key to toggle it on/off.

  2. Get used to hjkl/yubn, and be glad that if you ever decide to learn how to use vim in the future, you'll already have moving around with hjkl solidly ingrained into your muscle memory.





share|improve this answer























  • I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

    – Wooble
    Jan 14 '11 at 3:51











  • Really? It's not just NetHack? What sadistic bofh came up with this?

    – Iszi
    Jan 14 '11 at 20:45











  • @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

    – Chad Birch
    Jan 16 '11 at 17:45











  • Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

    – user56
    Jan 19 '11 at 14:00






  • 3





    @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

    – Trevoke
    Jan 30 '11 at 2:08


















1














You don't say which version of Nethack you're using, but I think most of the GUI clients should support directional keys. The Windows port definitely does.






share|improve this answer

























  • Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

    – Iszi
    Feb 13 '11 at 4:29











  • @Iszi I'm talking about nethackw.exe from the official Windows port.

    – user56
    Feb 13 '11 at 9:21











  • I still am not finding the option. Could you post instructions to your answer? Thanks.

    – Iszi
    Feb 14 '11 at 3:40











  • @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

    – user56
    Feb 14 '11 at 5:52











  • I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

    – the_e
    Mar 10 '11 at 18:13


















1














You cannot change the movement keys because they are unfortunately hardcoded in the source code. Not everyone is using a layout close to qwerty so it is very unfortunate.



However you can recompile the source to change the keys. I have created a patch that change the keys:



https://gist.github.com/kototama/19c514e69c89b464067507099d5b64ec



You can adapt it to specify the keys you want, in my case it was done to be convenient with the Colemak Mod DH layout.



Compilation instructions of NetHack are in the repo: https://github.com/NetHack/NetHack. Recompiling NetHack is not as complex as it seems. Good luck!



I hope this post helps people searching for a solution.






share|improve this answer






























    0














    If you edit the default.nh file in the game's root directory, you can set 'number_pad:1' or 2 to use the numpad for movement. See the guidebook for more details. Doing this also frees up letter keys for other commands, and won't cause confusions later if you map inventory items to consistent letters.



    Having your movement keys in one place controlling nothing but movement is a much more sensible control layout than vim uses; I don't know why everyone has to give you a hard time instead of giving the simple answer.






    share|improve this answer























    • Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

      – Doktoro Reichard
      Apr 3 '14 at 0:23












    • @DoktoroReichard this could still be helpful for someone else

      – shanodin
      Apr 3 '14 at 4:47


















    0














    Somewhat inspired by Cameron's answer, there may be another option to actually change the keyboard layout. Note however that this should only work on the Windows tty version of the game. To correct some keyboard localization issues, the OPTIONS=subkeyvalue:x/y allows for one given character to be replaced by another, as stated in the 3.4.3 Guidebook



    The fact is that this seems not to work, as I have tested this myself to no avail. All research I found on the net seems to indicate that either this only works for the Finnish problem or that no one was able to make it work.



    Thus, Nethack offers no solution to this problem. Another possible way to circumvent this is by using programs such as SharpKeys (which allows for easy registry-based mapping) or AutoHotKey, with the caveats I mentioned earlier about losing functionality. To sum it up, Nethack is so filled with commands that trying to remap other keys will remove some functionality from the game.






    share|improve this answer
































      0














      On my version of nethack (got it Feb. 2016 from the site) you simply go through the options menu using shift-O, and look for the "number_pad" option. I can edit that to switch control modes freely. I don't know if it works for you on a laptop, but for me it allows me to use the directional keys rather than the number pad.






      share|improve this answer
































        0














        Type shift-o, switch altmeta to [true], so you can use the meta key commands, scroll with the space bar, type in the command for number_pad, switch that to [1=on], turn your NumLock on and you're good to go.






        share|improve this answer








        New contributor



        deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





















          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "41"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f14567%2fcan-i-change-the-movement-keys-in-nethack%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          7 Answers
          7






          active

          oldest

          votes








          7 Answers
          7






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          As far as I know, there's no way to remap the keys outside of a recompiling from source, or a crazy hack like using AutoHotKey to map entirely different keys on the keyboard to hjkl/yubn. Obviously that has side-effects though.



          So you have a couple of options:



          1. You may not have an actual numpad, but most laptops have a mode that can "convert" part of the keyboard into a numpad, by holding down the "Fn" key, or using a "Fn Lock" key to toggle it on/off.

          2. Get used to hjkl/yubn, and be glad that if you ever decide to learn how to use vim in the future, you'll already have moving around with hjkl solidly ingrained into your muscle memory.





          share|improve this answer























          • I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

            – Wooble
            Jan 14 '11 at 3:51











          • Really? It's not just NetHack? What sadistic bofh came up with this?

            – Iszi
            Jan 14 '11 at 20:45











          • @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

            – Chad Birch
            Jan 16 '11 at 17:45











          • Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

            – user56
            Jan 19 '11 at 14:00






          • 3





            @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

            – Trevoke
            Jan 30 '11 at 2:08















          3














          As far as I know, there's no way to remap the keys outside of a recompiling from source, or a crazy hack like using AutoHotKey to map entirely different keys on the keyboard to hjkl/yubn. Obviously that has side-effects though.



          So you have a couple of options:



          1. You may not have an actual numpad, but most laptops have a mode that can "convert" part of the keyboard into a numpad, by holding down the "Fn" key, or using a "Fn Lock" key to toggle it on/off.

          2. Get used to hjkl/yubn, and be glad that if you ever decide to learn how to use vim in the future, you'll already have moving around with hjkl solidly ingrained into your muscle memory.





          share|improve this answer























          • I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

            – Wooble
            Jan 14 '11 at 3:51











          • Really? It's not just NetHack? What sadistic bofh came up with this?

            – Iszi
            Jan 14 '11 at 20:45











          • @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

            – Chad Birch
            Jan 16 '11 at 17:45











          • Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

            – user56
            Jan 19 '11 at 14:00






          • 3





            @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

            – Trevoke
            Jan 30 '11 at 2:08













          3












          3








          3







          As far as I know, there's no way to remap the keys outside of a recompiling from source, or a crazy hack like using AutoHotKey to map entirely different keys on the keyboard to hjkl/yubn. Obviously that has side-effects though.



          So you have a couple of options:



          1. You may not have an actual numpad, but most laptops have a mode that can "convert" part of the keyboard into a numpad, by holding down the "Fn" key, or using a "Fn Lock" key to toggle it on/off.

          2. Get used to hjkl/yubn, and be glad that if you ever decide to learn how to use vim in the future, you'll already have moving around with hjkl solidly ingrained into your muscle memory.





          share|improve this answer













          As far as I know, there's no way to remap the keys outside of a recompiling from source, or a crazy hack like using AutoHotKey to map entirely different keys on the keyboard to hjkl/yubn. Obviously that has side-effects though.



          So you have a couple of options:



          1. You may not have an actual numpad, but most laptops have a mode that can "convert" part of the keyboard into a numpad, by holding down the "Fn" key, or using a "Fn Lock" key to toggle it on/off.

          2. Get used to hjkl/yubn, and be glad that if you ever decide to learn how to use vim in the future, you'll already have moving around with hjkl solidly ingrained into your muscle memory.






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 14 '11 at 3:19









          Chad BirchChad Birch

          3,5031 gold badge19 silver badges30 bronze badges




          3,5031 gold badge19 silver badges30 bronze badges












          • I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

            – Wooble
            Jan 14 '11 at 3:51











          • Really? It's not just NetHack? What sadistic bofh came up with this?

            – Iszi
            Jan 14 '11 at 20:45











          • @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

            – Chad Birch
            Jan 16 '11 at 17:45











          • Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

            – user56
            Jan 19 '11 at 14:00






          • 3





            @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

            – Trevoke
            Jan 30 '11 at 2:08

















          • I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

            – Wooble
            Jan 14 '11 at 3:51











          • Really? It's not just NetHack? What sadistic bofh came up with this?

            – Iszi
            Jan 14 '11 at 20:45











          • @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

            – Chad Birch
            Jan 16 '11 at 17:45











          • Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

            – user56
            Jan 19 '11 at 14:00






          • 3





            @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

            – Trevoke
            Jan 30 '11 at 2:08
















          I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

          – Wooble
          Jan 14 '11 at 3:51





          I found that vikeys was confusing for a few hours, but after that it feels just as natural as the keypad, and is a lot less painful on the hands.

          – Wooble
          Jan 14 '11 at 3:51













          Really? It's not just NetHack? What sadistic bofh came up with this?

          – Iszi
          Jan 14 '11 at 20:45





          Really? It's not just NetHack? What sadistic bofh came up with this?

          – Iszi
          Jan 14 '11 at 20:45













          @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

          – Chad Birch
          Jan 16 '11 at 17:45





          @lszi: As I understand it, the idea is that it doesn't require you to move your fingers away from the home row at all. It doesn't take long to get used to, I'm a vim user and don't even have to think about it any more at all.

          – Chad Birch
          Jan 16 '11 at 17:45













          Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

          – user56
          Jan 19 '11 at 14:00





          Honestly, in Vi, you don't really use directional keys either. You stick to the keys that bring you exactly where you want to be. @Iszi Terminals that did not have arrow keys needed something. Some chose WASD, some chose HJKL.

          – user56
          Jan 19 '11 at 14:00




          3




          3





          @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

          – Trevoke
          Jan 30 '11 at 2:08





          @Iszi: A long, long time ago, there actually were arrows on the hjkl keys of the keyboard, so mapping them to left, up, down, right was natural.

          – Trevoke
          Jan 30 '11 at 2:08













          1














          You don't say which version of Nethack you're using, but I think most of the GUI clients should support directional keys. The Windows port definitely does.






          share|improve this answer

























          • Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

            – Iszi
            Feb 13 '11 at 4:29











          • @Iszi I'm talking about nethackw.exe from the official Windows port.

            – user56
            Feb 13 '11 at 9:21











          • I still am not finding the option. Could you post instructions to your answer? Thanks.

            – Iszi
            Feb 14 '11 at 3:40











          • @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

            – user56
            Feb 14 '11 at 5:52











          • I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

            – the_e
            Mar 10 '11 at 18:13















          1














          You don't say which version of Nethack you're using, but I think most of the GUI clients should support directional keys. The Windows port definitely does.






          share|improve this answer

























          • Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

            – Iszi
            Feb 13 '11 at 4:29











          • @Iszi I'm talking about nethackw.exe from the official Windows port.

            – user56
            Feb 13 '11 at 9:21











          • I still am not finding the option. Could you post instructions to your answer? Thanks.

            – Iszi
            Feb 14 '11 at 3:40











          • @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

            – user56
            Feb 14 '11 at 5:52











          • I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

            – the_e
            Mar 10 '11 at 18:13













          1












          1








          1







          You don't say which version of Nethack you're using, but I think most of the GUI clients should support directional keys. The Windows port definitely does.






          share|improve this answer















          You don't say which version of Nethack you're using, but I think most of the GUI clients should support directional keys. The Windows port definitely does.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 10 '11 at 11:19

























          answered Jan 19 '11 at 13:57







          user56



















          • Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

            – Iszi
            Feb 13 '11 at 4:29











          • @Iszi I'm talking about nethackw.exe from the official Windows port.

            – user56
            Feb 13 '11 at 9:21











          • I still am not finding the option. Could you post instructions to your answer? Thanks.

            – Iszi
            Feb 14 '11 at 3:40











          • @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

            – user56
            Feb 14 '11 at 5:52











          • I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

            – the_e
            Mar 10 '11 at 18:13

















          • Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

            – Iszi
            Feb 13 '11 at 4:29











          • @Iszi I'm talking about nethackw.exe from the official Windows port.

            – user56
            Feb 13 '11 at 9:21











          • I still am not finding the option. Could you post instructions to your answer? Thanks.

            – Iszi
            Feb 14 '11 at 3:40











          • @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

            – user56
            Feb 14 '11 at 5:52











          • I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

            – the_e
            Mar 10 '11 at 18:13
















          Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

          – Iszi
          Feb 13 '11 at 4:29





          Could you provide a link to the port that you're talking about? I don't think it's the same one I'm using.

          – Iszi
          Feb 13 '11 at 4:29













          @Iszi I'm talking about nethackw.exe from the official Windows port.

          – user56
          Feb 13 '11 at 9:21





          @Iszi I'm talking about nethackw.exe from the official Windows port.

          – user56
          Feb 13 '11 at 9:21













          I still am not finding the option. Could you post instructions to your answer? Thanks.

          – Iszi
          Feb 14 '11 at 3:40





          I still am not finding the option. Could you post instructions to your answer? Thanks.

          – Iszi
          Feb 14 '11 at 3:40













          @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

          – user56
          Feb 14 '11 at 5:52





          @Iszi There aren't really instructions, you just launch the game, press up to go up, down to go down, left to go left and right to go right.

          – user56
          Feb 14 '11 at 5:52













          I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

          – the_e
          Mar 10 '11 at 18:13





          I have to go with Arda on this one....I use nethackw.exe all the time now and use the direction keys just fine.

          – the_e
          Mar 10 '11 at 18:13











          1














          You cannot change the movement keys because they are unfortunately hardcoded in the source code. Not everyone is using a layout close to qwerty so it is very unfortunate.



          However you can recompile the source to change the keys. I have created a patch that change the keys:



          https://gist.github.com/kototama/19c514e69c89b464067507099d5b64ec



          You can adapt it to specify the keys you want, in my case it was done to be convenient with the Colemak Mod DH layout.



          Compilation instructions of NetHack are in the repo: https://github.com/NetHack/NetHack. Recompiling NetHack is not as complex as it seems. Good luck!



          I hope this post helps people searching for a solution.






          share|improve this answer



























            1














            You cannot change the movement keys because they are unfortunately hardcoded in the source code. Not everyone is using a layout close to qwerty so it is very unfortunate.



            However you can recompile the source to change the keys. I have created a patch that change the keys:



            https://gist.github.com/kototama/19c514e69c89b464067507099d5b64ec



            You can adapt it to specify the keys you want, in my case it was done to be convenient with the Colemak Mod DH layout.



            Compilation instructions of NetHack are in the repo: https://github.com/NetHack/NetHack. Recompiling NetHack is not as complex as it seems. Good luck!



            I hope this post helps people searching for a solution.






            share|improve this answer

























              1












              1








              1







              You cannot change the movement keys because they are unfortunately hardcoded in the source code. Not everyone is using a layout close to qwerty so it is very unfortunate.



              However you can recompile the source to change the keys. I have created a patch that change the keys:



              https://gist.github.com/kototama/19c514e69c89b464067507099d5b64ec



              You can adapt it to specify the keys you want, in my case it was done to be convenient with the Colemak Mod DH layout.



              Compilation instructions of NetHack are in the repo: https://github.com/NetHack/NetHack. Recompiling NetHack is not as complex as it seems. Good luck!



              I hope this post helps people searching for a solution.






              share|improve this answer













              You cannot change the movement keys because they are unfortunately hardcoded in the source code. Not everyone is using a layout close to qwerty so it is very unfortunate.



              However you can recompile the source to change the keys. I have created a patch that change the keys:



              https://gist.github.com/kototama/19c514e69c89b464067507099d5b64ec



              You can adapt it to specify the keys you want, in my case it was done to be convenient with the Colemak Mod DH layout.



              Compilation instructions of NetHack are in the repo: https://github.com/NetHack/NetHack. Recompiling NetHack is not as complex as it seems. Good luck!



              I hope this post helps people searching for a solution.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jul 17 '18 at 16:01









              KototamaKototama

              111 bronze badge




              111 bronze badge





















                  0














                  If you edit the default.nh file in the game's root directory, you can set 'number_pad:1' or 2 to use the numpad for movement. See the guidebook for more details. Doing this also frees up letter keys for other commands, and won't cause confusions later if you map inventory items to consistent letters.



                  Having your movement keys in one place controlling nothing but movement is a much more sensible control layout than vim uses; I don't know why everyone has to give you a hard time instead of giving the simple answer.






                  share|improve this answer























                  • Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

                    – Doktoro Reichard
                    Apr 3 '14 at 0:23












                  • @DoktoroReichard this could still be helpful for someone else

                    – shanodin
                    Apr 3 '14 at 4:47















                  0














                  If you edit the default.nh file in the game's root directory, you can set 'number_pad:1' or 2 to use the numpad for movement. See the guidebook for more details. Doing this also frees up letter keys for other commands, and won't cause confusions later if you map inventory items to consistent letters.



                  Having your movement keys in one place controlling nothing but movement is a much more sensible control layout than vim uses; I don't know why everyone has to give you a hard time instead of giving the simple answer.






                  share|improve this answer























                  • Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

                    – Doktoro Reichard
                    Apr 3 '14 at 0:23












                  • @DoktoroReichard this could still be helpful for someone else

                    – shanodin
                    Apr 3 '14 at 4:47













                  0












                  0








                  0







                  If you edit the default.nh file in the game's root directory, you can set 'number_pad:1' or 2 to use the numpad for movement. See the guidebook for more details. Doing this also frees up letter keys for other commands, and won't cause confusions later if you map inventory items to consistent letters.



                  Having your movement keys in one place controlling nothing but movement is a much more sensible control layout than vim uses; I don't know why everyone has to give you a hard time instead of giving the simple answer.






                  share|improve this answer













                  If you edit the default.nh file in the game's root directory, you can set 'number_pad:1' or 2 to use the numpad for movement. See the guidebook for more details. Doing this also frees up letter keys for other commands, and won't cause confusions later if you map inventory items to consistent letters.



                  Having your movement keys in one place controlling nothing but movement is a much more sensible control layout than vim uses; I don't know why everyone has to give you a hard time instead of giving the simple answer.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 3 '14 at 0:04









                  CameronCameron

                  1




                  1












                  • Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

                    – Doktoro Reichard
                    Apr 3 '14 at 0:23












                  • @DoktoroReichard this could still be helpful for someone else

                    – shanodin
                    Apr 3 '14 at 4:47

















                  • Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

                    – Doktoro Reichard
                    Apr 3 '14 at 0:23












                  • @DoktoroReichard this could still be helpful for someone else

                    – shanodin
                    Apr 3 '14 at 4:47
















                  Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

                  – Doktoro Reichard
                  Apr 3 '14 at 0:23






                  Reading the question notes that the original poster does not have a numpad. Also, IIRC, the Windows port does default to the numpad.

                  – Doktoro Reichard
                  Apr 3 '14 at 0:23














                  @DoktoroReichard this could still be helpful for someone else

                  – shanodin
                  Apr 3 '14 at 4:47





                  @DoktoroReichard this could still be helpful for someone else

                  – shanodin
                  Apr 3 '14 at 4:47











                  0














                  Somewhat inspired by Cameron's answer, there may be another option to actually change the keyboard layout. Note however that this should only work on the Windows tty version of the game. To correct some keyboard localization issues, the OPTIONS=subkeyvalue:x/y allows for one given character to be replaced by another, as stated in the 3.4.3 Guidebook



                  The fact is that this seems not to work, as I have tested this myself to no avail. All research I found on the net seems to indicate that either this only works for the Finnish problem or that no one was able to make it work.



                  Thus, Nethack offers no solution to this problem. Another possible way to circumvent this is by using programs such as SharpKeys (which allows for easy registry-based mapping) or AutoHotKey, with the caveats I mentioned earlier about losing functionality. To sum it up, Nethack is so filled with commands that trying to remap other keys will remove some functionality from the game.






                  share|improve this answer





























                    0














                    Somewhat inspired by Cameron's answer, there may be another option to actually change the keyboard layout. Note however that this should only work on the Windows tty version of the game. To correct some keyboard localization issues, the OPTIONS=subkeyvalue:x/y allows for one given character to be replaced by another, as stated in the 3.4.3 Guidebook



                    The fact is that this seems not to work, as I have tested this myself to no avail. All research I found on the net seems to indicate that either this only works for the Finnish problem or that no one was able to make it work.



                    Thus, Nethack offers no solution to this problem. Another possible way to circumvent this is by using programs such as SharpKeys (which allows for easy registry-based mapping) or AutoHotKey, with the caveats I mentioned earlier about losing functionality. To sum it up, Nethack is so filled with commands that trying to remap other keys will remove some functionality from the game.






                    share|improve this answer



























                      0












                      0








                      0







                      Somewhat inspired by Cameron's answer, there may be another option to actually change the keyboard layout. Note however that this should only work on the Windows tty version of the game. To correct some keyboard localization issues, the OPTIONS=subkeyvalue:x/y allows for one given character to be replaced by another, as stated in the 3.4.3 Guidebook



                      The fact is that this seems not to work, as I have tested this myself to no avail. All research I found on the net seems to indicate that either this only works for the Finnish problem or that no one was able to make it work.



                      Thus, Nethack offers no solution to this problem. Another possible way to circumvent this is by using programs such as SharpKeys (which allows for easy registry-based mapping) or AutoHotKey, with the caveats I mentioned earlier about losing functionality. To sum it up, Nethack is so filled with commands that trying to remap other keys will remove some functionality from the game.






                      share|improve this answer















                      Somewhat inspired by Cameron's answer, there may be another option to actually change the keyboard layout. Note however that this should only work on the Windows tty version of the game. To correct some keyboard localization issues, the OPTIONS=subkeyvalue:x/y allows for one given character to be replaced by another, as stated in the 3.4.3 Guidebook



                      The fact is that this seems not to work, as I have tested this myself to no avail. All research I found on the net seems to indicate that either this only works for the Finnish problem or that no one was able to make it work.



                      Thus, Nethack offers no solution to this problem. Another possible way to circumvent this is by using programs such as SharpKeys (which allows for easy registry-based mapping) or AutoHotKey, with the caveats I mentioned earlier about losing functionality. To sum it up, Nethack is so filled with commands that trying to remap other keys will remove some functionality from the game.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Apr 13 '17 at 12:09









                      Community

                      1




                      1










                      answered Apr 7 '14 at 3:42









                      Doktoro ReichardDoktoro Reichard

                      2,28913 silver badges30 bronze badges




                      2,28913 silver badges30 bronze badges





















                          0














                          On my version of nethack (got it Feb. 2016 from the site) you simply go through the options menu using shift-O, and look for the "number_pad" option. I can edit that to switch control modes freely. I don't know if it works for you on a laptop, but for me it allows me to use the directional keys rather than the number pad.






                          share|improve this answer





























                            0














                            On my version of nethack (got it Feb. 2016 from the site) you simply go through the options menu using shift-O, and look for the "number_pad" option. I can edit that to switch control modes freely. I don't know if it works for you on a laptop, but for me it allows me to use the directional keys rather than the number pad.






                            share|improve this answer



























                              0












                              0








                              0







                              On my version of nethack (got it Feb. 2016 from the site) you simply go through the options menu using shift-O, and look for the "number_pad" option. I can edit that to switch control modes freely. I don't know if it works for you on a laptop, but for me it allows me to use the directional keys rather than the number pad.






                              share|improve this answer















                              On my version of nethack (got it Feb. 2016 from the site) you simply go through the options menu using shift-O, and look for the "number_pad" option. I can edit that to switch control modes freely. I don't know if it works for you on a laptop, but for me it allows me to use the directional keys rather than the number pad.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Mar 13 '16 at 17:55

























                              answered Mar 13 '16 at 17:48









                              chauzerchauzer

                              964 bronze badges




                              964 bronze badges





















                                  0














                                  Type shift-o, switch altmeta to [true], so you can use the meta key commands, scroll with the space bar, type in the command for number_pad, switch that to [1=on], turn your NumLock on and you're good to go.






                                  share|improve this answer








                                  New contributor



                                  deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.























                                    0














                                    Type shift-o, switch altmeta to [true], so you can use the meta key commands, scroll with the space bar, type in the command for number_pad, switch that to [1=on], turn your NumLock on and you're good to go.






                                    share|improve this answer








                                    New contributor



                                    deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.





















                                      0












                                      0








                                      0







                                      Type shift-o, switch altmeta to [true], so you can use the meta key commands, scroll with the space bar, type in the command for number_pad, switch that to [1=on], turn your NumLock on and you're good to go.






                                      share|improve this answer








                                      New contributor



                                      deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      Type shift-o, switch altmeta to [true], so you can use the meta key commands, scroll with the space bar, type in the command for number_pad, switch that to [1=on], turn your NumLock on and you're good to go.







                                      share|improve this answer








                                      New contributor



                                      deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.








                                      share|improve this answer



                                      share|improve this answer






                                      New contributor



                                      deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.








                                      answered 57 mins ago









                                      deepstruckdeepstruck

                                      11 bronze badge




                                      11 bronze badge




                                      New contributor



                                      deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.




                                      New contributor




                                      deepstruck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.





























                                          draft saved

                                          draft discarded
















































                                          Thanks for contributing an answer to Arqade!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f14567%2fcan-i-change-the-movement-keys-in-nethack%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Sahara Skak | Bilen | Luke uk diar | NawigatsjuunCommonskategorii: SaharaWikivoyage raisfeerer: Sahara26° N, 13° O

                                          The fall designs the understood secretary. Looking glass Science Shock Discovery Hot Everybody Loves Raymond Smile 곳 서비스 성실하다 Defas Kaloolon Definition: To combine or impregnate with sulphur or any of its compounds as to sulphurize caoutchouc in vulcanizing Flame colored Reason Useful Thin Help 갖다 유명하다 낙엽 장례식 Country Iron Definition: A fencer a gladiator one who exhibits his skill in the use of the sword Definition: The American black throated bunting Spiza Americana Nostalgic Needy Method to my madness 시키다 평가되다 전부 소설가 우아하다 Argument Tin Feeling Representative Gym Music Gaur Chicken 일쑤 코치 편 학생증 The harbor values the sugar. Vasagle Yammoe Enstatite Definition: Capable of being limited Road Neighborly Five Refer Built Kangaroo 비비다 Degree Release Bargain Horse 하루 형님 유교 석 동부 괴롭히다 경제력

                                          19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу