mobile-shell / mobile-shell/mosh

optional lag-o-meter

Open
#565 5 comments 9 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

The message at the top of the mosh screen when network connection is borken is good to have, but I would like to have something with a little more real-time feedback.

Would be nice to have an option to show a lag-o-meter stat that continuously updates. Something along the lines of:

mosh: lag 112 ms (avg 120 ms, 78 ms, 76 ms) [To hide: Ctrl-^ l]

Where the 4 numbers indicate, respectively:

  • current lag
  • lag average over last 1 minute
  • lag average over last 5 minutes
  • lag average over last 15 minutes

Kind of like the way the w command shows load average.

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 tracing the existing message shown at the top of the mosh screen and the code that measures network lag. Determine where continuously updating status text and the Ctrl-^ l toggle belong. Done means an optional lag-o-meter reports current lag and 1-, 5-, and 15-minute averages, with a way to hide it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.