tsl0922 / ttyd

Share your terminal over the web
https://tsl0922.github.io/ttyd
MIT License
8.17k stars 897 forks source link

Some hotkeys unusable #1046

Open raspbeguy opened 1 year ago

raspbeguy commented 1 year ago

Describe the bug Some hotkeys are not usable on some keyboard layouts, for instance ^] on french AZERTY keyboards.

To Reproduce We will try to send the escape hotkey ^] (used by programs like telnet) using an french AZERTY keyboard.

  1. Make sure telnet is installed
  2. Run ttyd bash
  3. Open the terminal in your browser at http://127.0.0.1:7681
  4. Run telnet towel.blinkenlights.nl for instance.
  5. Then try to enter the escape character ^] (knowing that on french AZERTY keyboards the character ] is typed with AltGR + ).

Nothing happens. It is the same issue with other programs than telnet, for example virsh console.

Expected behavior You should get the telnet prompt telnet>

Environment:

tsl0922 commented 1 year ago

Can you reproduce it with with xterm.js demo?

raspbeguy commented 1 year ago

I don't know how to use that.

tsl0922 commented 1 year ago

Check: https://github.com/xtermjs/xterm.js/wiki/Contributing#running-the-demo

raspbeguy commented 1 year ago

Yes I reproduced it on demo.

tsl0922 commented 1 year ago

Then you may want to report this issue to the xterm.js repo, thanks.