mosh doesn't predict backspace when it's BS instead of DEL

Open
#655 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

No file or test is named. Start by tracing Mosh's backspace prediction path and its termios handling; compare the fixed 0x7f match with the configured erase character. Done means prediction works when erase is BS (^H), with the treatment of termios erase2 resolved.

Written by the indexing model from the issue text.

Description

feature

Mosh's prediction for backspaces has a fixed match for 0x7f, or DEL. It should use whatever is set as erase in termios, for those people who use ^H/BS. Some termios support an erase2 character, which is typically used to allow both DEL and BS to be used; I'm not 100% sure we should handle that too.

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

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.

More from mobile-shell/mosh

All issues in mobile-shell/mosh

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.