xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

`Alt` + `-` not caught by terminal

Open tomgroenwoldt opened this issue 4 months ago • 3 comments

I noticed that the combination Alt + - is not caught by the xterm.js terminal instance. I've tested this by logging the keypresses with terminal.onKey. The keypress itself is recognized by the browser.

Details

  • Browser and browser version: Firefox 141.0
  • OS version: Arch Linux 6.15.7
  • xterm.js version: 5.5.0,

Steps to reproduce

  1. Add logging via the terminal.onKey event listener.
  2. Press Alt + - and see that no event is caught by the terminal.

tomgroenwoldt avatar Aug 24 '25 12:08 tomgroenwoldt

It seems like it's not only Alt + -, but also Alt + ;.

tomgroenwoldt avatar Aug 25 '25 08:08 tomgroenwoldt

Alt - 3 also non-functional on MacOS, which is # on UK keyboards (at least)

dickiedyce avatar Oct 30 '25 17:10 dickiedyce

Alt+Arrow also seems to be uncaught, latest comment on #225 suggests its not just me.

RUGMJ avatar Nov 07 '25 11:11 RUGMJ

@RUGMJ for alt+arrow xterm.js doesn't do that anymore because it was non-standard (https://github.com/xtermjs/xterm.js/issues/4538), you need a keybinding set up in your embedder if you want that.

Tyriar avatar Dec 27 '25 14:12 Tyriar

I cannot reproduce this in xterm.js v6 on Windows or macOS. On macOS I tried various IMEs including GB and it was they all worked fine for me in the demo.

Tyriar avatar Dec 27 '25 14:12 Tyriar