Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tilde character ~ is not displayed in terminal using Belgian keyboard layout #174

Closed
Tyriar opened this issue Jul 12, 2016 · 12 comments
Closed
Labels
type/bug Something is misbehaving

Comments

@Tyriar
Copy link
Member

Tyriar commented Jul 12, 2016

From @pierredewilde on July 9, 2016 18:30

  • VSCode Version: 1.3.0
  • OS Version: Mac OS X El Capitan 10.11.5 with Belgian keyboard

Steps to Reproduce:

  1. Open Integrated Terminal (View > Integrated Terminal)
  2. Type cd ~ + Enter

The tilde character (~) is not displayed.
$ cd

Copied from original issue: microsoft/vscode#9008

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

  • Does it show up if you hit ~ multiple times?
  • Does it actually input a ~ or skip the character (does the cursor move right when you hit ~, what does tab completion do when you type cd ~/?

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

From @pierredewilde on July 10, 2016 4:1

  • The tilde does not appear even if hit multiple times.
  • The cursor does not move. cd ~/ is inputed as cd /

It is a keyboard layout issue: if I switch to the US keyboard layout, I can type ~. On a Belgian keyboard layout, I need to type alt+n followed by a space to produce ~. In the code editor, ~ appears. In the integrated terminal, ~ does not appear.

If I copy cd ~ from the code editor and paste it in the integrated terminal, it works as expected.

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

From @nih0 on July 11, 2016 8:52

I have the same issue with a german keyboard on macOS(OS X 10.11.1).

  • OS X 10.11.1
  • Version 1.3.0

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

Thanks, I think this is to do with lack of AltGr support (#7061). Please confirm 😃

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

From @pierredewilde on July 11, 2016 21:28

I am using a MacBookAir with a Belgian keyboard layout:
https://support.apple.com/library/content/dam/edam/applecare/images/en_US/keyboards/belgian_keyboard.png

There is no AltGr key on Apple keyboard layout.

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

@pierredewilde if possible, could you setup https://github.com/sourcelair/xterm.js and check to see if this reproduces in the demo? This should get it up and running easily:

git clone https://github.com/sourcelair/xterm.js.git
cd xterm.js
npm install
npm start # I think this needs node <= 4
# open browser at http://0.0.0.0:3000

@Tyriar
Copy link
Member Author

Tyriar commented Jul 12, 2016

From @pierredewilde on July 11, 2016 23:21

Yep, same issue after installing and running xterm.js: no tilde appears.

BTW, you don't need node <= 4. Tested with node 6.3.0.

@Tyriar
Copy link
Member Author

Tyriar commented Jul 13, 2016

I can reproduce on Ubuntu, ~~ types a single ~ and ~[space] types a single ~.

@Tyriar
Copy link
Member Author

Tyriar commented Jul 13, 2016

@pierredewilde this also happens in the other programs I tried it out in? (Chromium and gedit)

@pierredewilde
Copy link

It is not the case on Mac with international keyboard: ~~ types nothing and ~[space]types a space. ~ never appears in integrated terminal.

This issue is specific to integrated terminal. It works as expected anywhere else (Terminal, Chromium, ...).

@parisk parisk added the type/bug Something is misbehaving label Aug 24, 2016
@Tyriar
Copy link
Member Author

Tyriar commented Jun 1, 2018

I think this was fixed with improved alt support in 3.2.0 https://github.com/xtermjs/xterm.js/releases/tag/3.2.0

@ghost
Copy link

ghost commented Aug 19, 2019

Working on Windows with an Azerty keyboard, typing Shift + F4 creates the tilde straight away, for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is misbehaving
Projects
None yet
Development

No branches or pull requests

3 participants