Unable to input certain characters
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.
same thing with a french keyboard
same with german keyboard AltGr (right alt key) doesn't work
In Spanish, in addition to these symbols (eg '|'), you can not put accent marks
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.
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.
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 :(
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.
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.
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.
Nor the PowerShell console. It's only on the bash console.
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
I'm on a desktop with Swedish keyboard, experiencing the same issues as other people in this thread.
I noticed however that @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...
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.
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.
Same here for the Norwegian keyboard. AltGr isn't working, making it much more difficult than it should be to produce symbols like @£$€{[]}
I've also noticed pressing AltGr+5 or AltGr+8 before the desired combination will force it to work as intended. It seems like AltGr+5 (which behaves just like Ctrl+Alt+5) is some kind of readline command. I'm in no way an expert in this, but Ctrl+Alt+5 and then pressing any number will produce (arg: [number]) . Not sure if this is helpful.
We were only supporting ASCII character set. I have just finished some work to extend it to UTF-8 and honor windows keyboard layout mapping, so in the future you could type special non-ASCII characters. We are still working on updating tty to properly support UTF-8 (especially in cooked mode) and are currently investigating why special keyboard combinations are not transmitting proper keycodes.
Great! Thanks for the update!
Hey guys, so the proper input and ALTGR+Key combination should be fixed and eventually make its way to the one of the next flights.
This is still an issue in Build 14342, and now it's worse because preceding with AltGr+5 doesn't work, but one can use AltGr+8. I have Swedish keyboard.
Also instead of being able to enter characters that I would be able to enter normally into anywhere else with my Hungarian keyboard, there are some combinations that instead seem to be doing something else.
E.g. AltGr + 1 for me is supposed to type out ~, but instead this appears:
root@AMCSI-ACER:~#
backup games landscape lp messagebus pollinate sshd syslog
bin gnats libuuid mail news proxy sync uucp
daemon irc list man nobody root sys www-data
Or if I do AltGr + é (the location of é on the keyboard is the equivalent of ; on the US keyboard), instead of getting the expected dollar sign $, this gets outputted:
root@AMCSI-ACER:~#
_ BASH_SOURCE HISTCONTROL LESSOPEN OSTYPE SHELL
BASH BASH_SUBSHELL HISTFILE LINENO PATH SHELLOPTS
BASH_ALIASES BASH_VERSINFO HISTFILESIZE LINES PIPESTATUS SHLVL
BASH_ARGC BASH_VERSION HISTSIZE LOGNAME PPID SSH_AGENT_PID
BASH_ARGV COLUMNS HOME LS_COLORS PS1 SSH_AUTH_SOCK
BASH_CMDS COMP_WORDBREAKS HOSTNAME MACHTYPE PS2 TERM
BASH_COMMAND DIRSTACK HOSTTYPE MAILCHECK PS4 UID
BASH_LINENO EUID IFS NAME PWD USER
BASHOPTS GROUPS LANG OPTERR RANDOM
BASHPID HISTCMD LESSCLOSE OPTIND SECONDS