mobile-shell / mobile-shell/mosh

Support SIGTSTP

Open
#1,068 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.