xtermjs / xterm.js

A terminal for the web
https://xtermjs.org/
MIT License
17.43k stars 1.62k forks source link

Scandinavian keyboard layout can't handle input tilde (~) #2151

Open ixrock opened 5 years ago

ixrock commented 5 years ago

To type ~ with Finnish/Swedish keyboard I have to press hotkey alt+^: image

After that it shows something similar to ~ but right after when I press any other character (except Enter) it will erase "pre-tilde" symbol. Press Enter "converts" to normal ~ and nothing more (without real Enter).

I checked how this works with vanilla JS and it seems something wrong at browser-level: image

Is it fixable? Wdyt?

Related bugs:

https://github.com/xtermjs/xterm.js/issues/174

Details

Steps to reproduce

  1. Add support of Finnish keyboard in your OS
  2. Try to use ~ from keyboard
renathoaz commented 2 years ago

For those using Ubuntu 20.04. After a long searching I found out that vscode depends on ibus for the accents work on integrated terminal. the workaround :

1.Install ibus: sudo apt install ibus ibus-gtk3

  1. Create the config file:
    
    cat <<EOF >ibus.dconf
    [general]
    preload-engines=['xkb:br::por']

[general/hotkey] triggers=@as []

[panel] show-icon-on-systray=false EOF


3. import it to dconf:  `dconf load /desktop/ibus/<ibus.dconf`
4. init ibus with proper config: ` im-config -n ibus`
5. activate ibus on GNOME: `gsettings set org.gnome.desktop.input-sources sources "[('ibus', 'xkb:br::por')]"`

### and now everything is just working fine:
![Seleção_329](https://user-images.githubusercontent.com/16307350/160263549-6f699dab-f9af-462e-8884-fe8f07d8cbac.png)
thiagobraga commented 2 years ago

Now I'm not using Ubuntu 20.04 anymore, I upgraded to Ubuntu 21.10 and VSCode 1.66. I noticed that ibus and ibus-gtk3 are already installed. I believe that since I reinstalled, I hadn't done the accent test in VSCode terminal. And to my surprise, it now worked normally, without having to change any settings.

image