mobile-shell / mobile-shell/mosh
Support SIGTSTP
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 14.5k
- Forks
- 865
- PR merge metrics
- No merged PRs in 30d
Description
mosh-client should pause the terminal nicely if it receives SIGTSTP. The current code in process_user_input would just call a new pause function, and the current terminal restoration logic & SIGSTOP would move to the new handler function (which would also be executed when SIGTSTP is received). I'm not sure that resume needs to be called after SIGSTOP as SIGCONT should cause it to be called already (although calling resume twice should be fine).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in process_user_input and trace the existing terminal restoration logic and SIGSTOP handling. Implement the SIGTSTP pause path and verify that SIGCONT resumes the terminal correctly without leaving terminal state inconsistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100