mobile-shell / mobile-shell/mosh

Typing MOSH_ESCAPE_KEY twice sends the escape key twice

Open
#1,239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Terminal emulation
Dominant language
C++
Stars
14.5k
Forks
865
PR merge metrics
No merged PRs in 30d

Description

With mosh 1.3.2 on MacSS 12.5 (installed via brew) connecting to mosh 1.3.2 on CentOS 7, if I type the escape character (^6) twice, I get two escape characters at the remote end:

-bash-4.2$ hexdump -C
^^^^00000000  1e 1e                                             |..|
00000002

This is different to the description in the ESCAPE SEQUENCES section of the manpage:

        ... To send the escape character itself, type it twice.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the double-MOSH_ESCAPE_KEY behavior using the versions and platforms described, then compare it with the ESCAPE SEQUENCES section of the manpage. Trace the terminal input handling involved and confirm that sending the escape character twice matches the documented behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.