We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As far as I can tell xterm.js does not offer a solution to detect key combinations with ctrl, meta or shift modifiers.
The Node.js process.stdin.on("keypress" event returns two variables: ch and key, per keypress:
process.stdin.on("keypress"
ch
key
ch: c key: { sequence: 'c', name: 'c', ctrl: false, meta: false, shift: false }
for c
ch: key{ sequence: '\u0003', name: 'c', ctrl: true, meta: false, shift: false }
for ctrl + c.
Is there a way to get the same sort of data from xterm.js? Is there a generally accepted workaround?
The text was updated successfully, but these errors were encountered:
@brianjenkins94 you should be able to do this by recording the raw key events by hooking up this function and allowing all events to go through:
xterm.js/typings/xterm.d.ts
Lines 462 to 471 in 0b8c320
Sorry, something went wrong.
No branches or pull requests
As far as I can tell xterm.js does not offer a solution to detect key combinations with ctrl, meta or shift modifiers.
The Node.js
process.stdin.on("keypress"
event returns two variables:ch
andkey
, per keypress:for c
for ctrl + c.
Is there a way to get the same sort of data from xterm.js? Is there a generally accepted workaround?
The text was updated successfully, but these errors were encountered: