mobile-shell / mobile-shell/mosh

Cursor Color and Style changes

Open
#352 18 comments 37 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature good first issue Terminal emulation
Dominant language
C++
Stars
14.5k
Forks
865
PR merge metrics
No merged PRs in 30d

Description

MinTTY allows to change cursor styles and colors but mosh ignores them.
This would be useful for vim (different insert and normal mode cursors)

Mode-dependent cursor in vim:
CSI Ps SP q

Example: echo -ne '\e]12;#00FF00\a' # green cursor
http://code.google.com/p/mintty/wiki/Tips#Mode-dependent_cursor_in_vim

Changing colors:
OSC Ps ; Pt ST
OSC Ps ; Pt BEL

Example: echo -ne "\e[2 q" # non blinking block cursor
http://code.google.com/p/mintty/wiki/Tips#Changing_colours


Xterm Control Sequences taken from
http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt

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

The issue names no repository files or tests. Start by locating mosh's handling of terminal control sequences and compare it with the listed CSI and OSC forms; done means cursor styles and colors work through mosh, including vim's mode-dependent cursor changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
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.