-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor Color and Style changes #352
Comments
Not just mintty. This is across the board. Mosh currently only looks for visibility and position of the cursor. The spec is at http://vt100.net/docs/vt510-rm/DECSCUSR |
There's also another sequence used by iTerm2 and Konsole https://code.google.com/p/iterm2/issues/detail?id=710 In addition with tmux running, the codes must be further escaped by "\ePtmux;\e" and "\e" To make matters worse, when using tmux if you have a remote tmux session within a local tmux session, you have to send multiple codes so that it will update on multiple ends. In my case I use Konsole on linux and iTerm2 on OSX and still have to send the xterm-based sequence to get tmux within tmux to display the correct cursor even though both ends should support the same sequence. ssh works fine because it sends the full stream both ways, but with mosh's diff based system I'm not sure how feasible monitoring all this would be because I don't think it's something that can be queried, at least not across the board, and even if it can be queried, which code should it use and on which end. Why cursor shape definition isn't a followed standard is beyond me. Makes portability extremely difficult. |
+1 on this issue |
is it any work in this direction? :D |
Re: Tmux: Adding |
Cursor change should be possible, unlike a lot of the other open feature requests it won't add a lot of data overhead. Seems like the problem is there have been no new releases in years? |
+1 on this issue! |
This also works on Kitty. It would be great to support it. printf '\x1b]12;%s\a' '#ffffe4e4c4c4' |
It looks like this was supported in xterm per https://invisible-island.net/xterm/ctlseqs/ctlseqs.html |
i would like to contribute to this issue , can you let me know how i can solve it. |
Any news or progress on this issue? |
please merge #1292 It will be fine after I apply this patch |
I've been using the changes from #1292 daily for quite a while and I haven't noticed any issues with it. It works as advertised. |
// just in case anybody interested, I merged #1292 and some other PRs form here in https://github.com/alphallc/mosh |
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
The text was updated successfully, but these errors were encountered: