2

I am using an Acer Swift One laptop with Windows 10. The keyboard is a standard German keyboard.

I downloaded bash today from git-scm.com/download/win and tried some commands. For some reason bash shows k instead of ~ when pressing the tilde key.

Any help or advice on what I'm doing wrong?

Kusalananda
  • 320,670
  • 36
  • 633
  • 936
Linda
  • 29
  • 1
  • 2
  • 1
    Where/how are you running bash? (I mean - locally on a linux machine, through ssh/putty, etc.). This is most likely an issue outside of bash - keyboard layout, keybindings, etc. – myxal Feb 08 '20 at 11:59
  • I am using an acer swift one laptop with Windows 10.. How do I change the Keyboard layout to get the keys I need / which are showing on the physical keyboard. Well as I´m german the keyboard setting is on standard german. I tried to look up how to find the "virtual" keyboard layout but not successful. – Linda Feb 08 '20 at 12:34
  • Don't have much experience with DE layout, but according to wikipedia, tilde should be accessible via AltGr (right Alt) + the key with +, * on it, left of Enter. If that fails, just add US-English layout a see if that helps. On that layout, tilde is on the key left of '1', via Shift. – myxal Feb 08 '20 at 15:15
  • This is a Win32 program running on Windows, and in an answer comment the questioner responded to a request for which Linux or Unix operating system this is, with "simply Windows 10". – JdeBP Feb 08 '20 at 17:07
  • 2
    There is no involvement of Unix or Linux here. – JdeBP Feb 08 '20 at 17:07
  • There is a way to get the key-press without interpretation. Press Ctrl-v and then the usual combination you use to get the tilde `~` and tell us what you get. –  Feb 08 '20 at 20:01
  • Is this the layout of your keyboard? https://en.wikipedia.org/wiki/German_keyboard_layout .... What it says is that you should use the Alr-Gr (the right Alt) to get the `~` from the key that is at the left of the `Enter`. Do you get a `k` when you press that in bash ? –  Feb 08 '20 at 20:07

2 Answers2

0

I'm using a Norwegian keyboard layout, and after doing this once, it for some reason works like normal again:

  • Press Alt Gr + ^ twice.

https://unix.stackexchange.com/a/566443/514949]

Same as what Munzir Taha suggested in his answer

AdminBee
  • 21,637
  • 21
  • 47
  • 71
Snailedlt
  • 101
  • 2
  • For reference / comparison, here’s an [image of the German keyboard layout](https://i.stack.imgur.com/Bnoz5.jpg), which I pulled from the [Wayback Machine](https://archive.org ""). (It was originally at http://www.uni-regensburg.de/EDV/Misc/KeyBoards/keys11l.jpg.) – G-Man Says 'Reinstate Monica' Jul 01 '22 at 21:07
-3

This could prove useful. It mentioned you need to press the key with +*~ twice!

On the german keyboard layout you have to hold "Alt Gr" and then type the "+ * ~" key to create the tilde sign. When I want do do this in a konsole that I opened with Xming, I have to type that key two times before the tilde appears

Munzir Taha
  • 1,445
  • 4
  • 12
  • I just pressed the ctrl key and the key with +,* and ~ and bash shows a k. I don´t get it either because in all other tools I use i don´t have that issue with my keyboard – Linda Feb 08 '20 at 12:05
  • @Linda: Why do you need the ctrl key with +,* to type ~? Isn't the tilde in its own key to the left of the number 1 in your keyboard? I just need to press SHIFT with that key on the top left. – Munzir Taha Feb 08 '20 at 12:10
  • @Linda, can you please edit that into your question. And also specify which keyboard layout you have. Are you sure about ctrl, I think you mean either shift or Alt Gr. – Oskar Skog Feb 08 '20 at 12:10
  • So I got a german keyboard on an acer swift one laptop. – Linda Feb 08 '20 at 12:15
  • The key contains +, * and ~ to get the + is only press the key +. To get * I press shift and + and to get the tilde i press Crtl, Alt and + = ~.. I mean this is working but somehow not in bash. MAybe I need to adjust the keyboard settings but I don´t know what should be set up then. I thought it would work right away :D – Linda Feb 08 '20 at 12:18
  • Which linux distribution and Desktop Environment are you using? – Munzir Taha Feb 08 '20 at 12:34
  • Simply windows 10.. https://git-scm.com/download/win this is the link where i downloaded the 64 bit version of bash – Linda Feb 08 '20 at 12:36
  • If you keep pressing Alt and then typed 126 would this help? – Munzir Taha Feb 08 '20 at 13:07
  • @MunzirTaha tried it before and it doesn´t help :( – Linda Feb 08 '20 at 13:15
  • 1
    @Linda: Alt-Gr and that button twice instead of one, works? – Munzir Taha Feb 08 '20 at 13:17
  • 1
    :O it does! Thanks! – Linda Feb 08 '20 at 14:23
  • @Linda: instead of voting the comment only, please, vote and accept the answer itself with the green check mark. – Munzir Taha Feb 09 '20 at 04:48
  • The bugs.freedesktop.org site links to this [image of the German keyboard layout](https://i.stack.imgur.com/Bnoz5.jpg), which I pulled from the [Wayback Machine](https://archive.org ""). – G-Man Says 'Reinstate Monica' Jul 01 '22 at 21:01