question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MOSH's escape keyboard shortcut (ctrl+^) not worked

See original GitHub issue

Issue

In MOSH (https://mosh.mit.edu/) for exit I am need to input ctrl+^ (actually for this I am pressed keys ctrl, shift, 6).

In xterm.js this combination not worked. In iTerm and native terminal app - this combination worked.

From MOSH manual:

ESCAPE SEQUENCES
       The  default  escape  character used by Mosh is ASCII RS (decimal 30).  
       This is typically typed as Ctrl-^ or Ctrl-Shift-6, on US English keyboards.  

In Chrome this combination succesfully catched by event keypress like this (key code === 30): image

Details

  • Browser and browser version: Google Chrome Version 80.0.3987.149 (Official Build) (64-bit)
  • OS version: macOS 10.15.4
  • xterm.js version: 4.4.0

Steps to reproduce

  1. Show in xterm.js terminal from linux which have command showkey (I am use debian) and run
showkey -a

and then press ctrl, shift, 6 - nothing was happends.

  1. In other terminal do same - and you will see: image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Tyriarcommented, Feb 22, 2022

Ah you’re right, ctrl+shift+2 (ctrl+@) also correctly sends null. Looking at https://www.decisivetactics.com/support/view?article=control-characters, we handle all of them correctly (ctrl+w/t don’t work because of browser keys) except for ctrl+@, ctrl+^ and ctrl+?.

1reaction
amurchickcommented, May 4, 2020

@Tyriar I am can’t find documentation, here all non-printable codes from 0 to 31 and how to send it (^ is ctrl key press):

user@debian$ showkey -a
Press any keys - Ctrl-D will terminate this program
^@        0 0000 0x00
^A        1 0001 0x01
^B        2 0002 0x02
^C        3 0003 0x03
.....
^X       24 0030 0x18
^Y       25 0031 0x19               
^Z       26 0032 0x1a
^[       27 0033 0x1b
^\       28 0034 0x1c
^]       29 0035 0x1d
^^       30 0036 0x1e
^_       31 0037 0x1f

This is real showkey output in MacOS terminal app, connected to debian and I am pressed all these combinations on keyboard

Read more comments on GitHub >

github_iconTop Results From Across the Web

ctrl-^ escape not ideal · Issue #215 · mobile-shell/mosh - GitHub
I'm a little bit appalled that there are so many recommendations for shortcuts, that only work remotely well on US keyboards. Most common...
Read more >
Keyboard Shortcuts Not Working (5 Fixes) - YouTube
If your keyboard shortcuts are not working, see if it's one of these 5 common keyboard shortcut issues.⚑ SUBSCRIBE to get my latest ......
Read more >
JetBrains Rider - Keyboard shortcut not working?
Troubleshooting keyboard and mouse shortcuts that are either working ... Press Ctrl+Alt+S to open the IDE settings and select Keymap.
Read more >
Oops! 10 Keyboard Shortcuts Users Keep Hitting by Mistake
Shortcuts like Ctrl + Shift + Esc (to open the Task Manager) and Ctrl + Alt + Del (to open a screen with...
Read more >
Keyboard shortcuts for Access - Microsoft Support
Ctrl+Left arrow or Ctrl+Period (.) Note: This shortcut does not work under all conditions with all objects. Top of Page. Work in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found