Skip to content

Unable to input certain characters #11

Closed

Description

I'm using Slovenian keyboard layout, and there are problems inputting characters that require AltGr (this includes , |, {, }, [, ]). Sometimes the character appears properly, other the terminal just beeps.

Activity

  1. trapframe commented on Apr 7, 2016

    @trapframe

    same thing with a french keyboard

  2. christoh commented on Apr 7, 2016

    @christoh

    same with german keyboard AltGr (right alt key) doesn't work

  3. alorle commented on Apr 7, 2016

    @alorle

    In Spanish, in addition to these symbols (eg '|'), you can not put accent marks

  4. patryk9200 commented on Apr 7, 2016

    @patryk9200

    I think the problem is with ubuntu keyboard layout. Did you tried change that?
    Probably something like this will help-
    in bash type & install:

    apt-get install console-common
    Then you need reconfigure keyboard layout.
    Try reboot PC.
    There is many problems with this, I tried many methods, most of them don't work.

  5. paulomorgado commented on Apr 8, 2016

    @paulomorgado

    The same happens with the portuguese layout.

    But it's strange because, usually, **Alt _+ ( _Num6, **Num4 _) is a good replacement for _AltGr+2 to get @, but not in this case.

  6. ebaratte commented on Apr 8, 2016

    @ebaratte

    Same problem here with a French layout (azerty). I noticed that when bash is run from ConEmu, special characters are input correctly. Though arrow keys don't work anymore :(

  7. Ordspilleren commented on Apr 8, 2016

    @Ordspilleren

    Same issue with Danish keyboard layouts. I think this is an issue with the newly improved Windows Console Host, it only seems to support US layouts for now. Additionally, using an alternative console like ConEmu doesn't seem to work either (specifically arrow keys, del, ins, home etc.), presumably since bash.exe depends on some of those console host improvements.

  8. ebaratte commented on Apr 8, 2016

    @ebaratte

    Some kind of workaround: I noticed that pressing AltGr + 5 (that is [ on my french keyboard) then the desired combination (eg. AltGr + 6 for |) will input the character correctly. A bit tedious, though.

  9. jernejs commented on Apr 8, 2016

    @jernejs
    Author

    I think this is an issue with the newly improved Windows Console Host, it only seems to support US layouts for now.

    I haven't noticed any such problems in cmd.

  10. paulomorgado commented on Apr 8, 2016

    @paulomorgado

    Nor the PowerShell console. It's only on the bash console.

  11. mobluse commented on Apr 9, 2016

    @mobluse

    This laptop has Swedish keyboard. It's only when using Bash I have this problem not Cmd, that AltGr doesn't work for typing @£${[]}~|. Swedish characters also doesn't work åäöÅÄÖ even though they don't use AltGr.

    I tried this but it didn't work:

    root@localhost:~# locale-gen sv_SE.UTF-8
    Generating locales...
      sv_SE.UTF-8... up-to-date
    Generation complete.
    root@localhost:~# dpkg-reconfigure locales
    Generating locales...
      en_US.UTF-8... done
      sv_SE.UTF-8... up-to-date
    Generation complete.
    root@localhost:~# dpkg-reconfigure console-data
    Looking for keymap to install:
    se-latin1
    Deferring virtual terminal setup until console accessible.
    root@localhost:~# dpkg-reconfigure keyboard-configuration
    plymouth: ply-command-parser.c:939: ply_command_parser_parse_arguments: Assertion `loop != ((void *)0)' failed.
    Aborted (core dumped)
    update-initramfs: deferring update (trigger activated)
    Processing triggers for initramfs-tools (0.103ubuntu4.3) ...
    

    An idea is to have some script similar to raspi-config to configure keyboard etc, since normally in Ubuntu this is done using GUI tools, see https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config

  12. boulund commented on Apr 10, 2016

    @boulund

    I'm on a desktop with Swedish keyboard, experiencing the same issues as other people in this thread.
    I noticed however that Etienne Baratte (@ebaratte)'s solution, typing AltGr+5 allows you to press a subsequent combination (e.g. the pipe character; reachable on my keyboard as AltGr+< (the key left of Z, to the immediate right of my left shift key).
    This solution does not work for producing ÅÄÖ though... Also, when printing left bracket "[", the printed character isn't shown until the next key press (i.e. like thilde "~" or grave accent "`" normally does). Another interesting thing to note is that typing thilde (AltGr+¨, the key top left of Enter, to the right of Å) actually works without typing AltGr+5...

  13. xilun commented on Apr 22, 2016

    @xilun

    I also have this issue with a french layout, and it is still present in build 14328.
    AltGr basically does not do its job when the terminal is running bash. Works fine as usual when cmd is running.

  14. xilun commented on Apr 23, 2016

    @xilun

    Note that trying to paste non-ascii characters in the console when bash is running also does not work.
    Using ConEmu instead of the console let ascii characters be written with the keyboard including with AltGr key, but unlike on the previous build non-ascii characters now can not be entered at all, including under ConEmu.

  15. 28 remaining items

  16. asteinlein commented on Jan 13, 2017

    @asteinlein

    I have the exact same issue as Tedd (@tedd) with the Norwegian keyboard. AltGr+2 does not produce @ as expected, nor does AltGr+3 produce £, but instead a square �. This is with all Windows updates installed and Windows Bash installed for the first time today.

  17. sunilmut commented on Jan 13, 2017

    @sunilmut
    Member

    Anders Elieson Steinlein (@asteinlein) - This is a long post and difficult to keep track now. For quicker resolution, can you please open a new issue, following the template?

  18. wayne-kirk-schmidt commented on Jan 17, 2017

    @wayne-kirk-schmidt
  19. asteinlein commented on Feb 7, 2017

    @asteinlein

    Thought I'd chime in with my findings on this. Turns out Asus GPU TweakII I have installed has global keyboard shortcut enabled for AltGr+2 (for the @ character). This introduces a slight delay in other programs when typing the keyboard combination as well, but the @ does show up. However, it seems like this slight delay somehow affects Windows Bash, as the character never appears.

    Disabling the keyboard shortcut in Asus GPU TweakII resolved the problem in Windows Bash for me, but it seems like this could possibly be improved regardless (since, as mentioned, @ did show up after a small delay in regular applications).

  20. kappa77 commented on Aug 1, 2017

    @kappa77

    I have an Italian Layout ,
    I am not able to pass any to bash Alt+/[digit]+/ or AltGr+/[digit]+/ sequemce .
    For ex. Tilde ~ , via ALT+126 ,
    copy/paste also does not work .

    On Windows 10 Pro version 1703 build 15063.483
    In Bash :
    uname -a
    Linux mypc 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
    lxd --version
    2.0.10

  21. w-biggs commented on Feb 13, 2018

    @w-biggs

    I'm able to use altGr for everything except the top-left key on my keyboard; I have a custom version of the Swedish keyboard that replaces the default function of that key (which is usually §, ½, and no altGr character) to <, >, and |. The greater than/less than symbols work. However, when trying to input |, it inputs the § character instead.

  22. s10g commented on Mar 8, 2020

    @s10g

    Running NeoVim for windows in a cmd.exe in Windows Terminal, I cannot type a $ sign (AltGr+4) inside NeoVim. It does not work in the legacy cmd.exe terminal either.

  23. marcmarina commented on Dec 4, 2020

    @marcmarina

    I have this issue, I'm using WSL 1 with a Spanish layout.

  24. added 3 commits that reference this issue on Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions