mobile-shell / mobile-shell/mosh

Method to let programs know client is active/reachable

Open
#534 3 comments 1 reaction 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

It would be nice if mosh would provide a method that would allow programs running under mosh-server to check if a client is currently active and reachable.

An obvious use case for this would be something equivalent to screen_away.pl for irssi, where the IRC client sets the user's /away status if the user isn't attached to the screen session.

One method of attaining this would be something similar to screen, where a SCREEN_SOCKET environment variable is provided pointing to a socket file, and the program can check if the user executable flag on this file is set, meaning the user is attached if it is, and detached if it isn't.

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 examining how mosh-server tracks whether its client is active and reachable, and how programs running under it receive environment information. Compare that behavior with the SCREEN_SOCKET approach described in the issue. Done means a program such as irssi can reliably determine whether the user is attached or detached.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.