Skip to content
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

Corrupt prompt when using mosh #1540

Closed
1 task done
hanskokx opened this issue Jan 5, 2022 · 8 comments
Closed
1 task done

Corrupt prompt when using mosh #1540

hanskokx opened this issue Jan 5, 2022 · 8 comments
Assignees
Labels
🏝 external The issue isn't with oh-my-posh 🤔 info needed Further information is requested

Comments

@hanskokx
Copy link
Contributor

hanskokx commented Jan 5, 2022

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

I have ohmyposh on all my devices, using the same theme. It works beautifully.

When I ssh to my server, the prompt works perfectly. However, when I use mosh, the prompt is corrupt. This may be a mosh issue, rather than an ohmyposh issue, but I wanted to get feedback and have a source of documentation either way.

Theme

My theme is slightly modified from the default:

{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "type": "os", "style": "diamond", "leading_diamond": "", "foreground": "#ffffff", "background": "#6B69D6", "properties": { "postfix": " \uE0B1\u2800", "windows": "" } }, { "type": "session", "style": "powerline", "foreground": "#ffffff", "background": "#6B69D6", "trailing_diamond": "", "properties": { "display_default": false, "default_user_name": "xxxx", "ssh_icon": "ﯱ", "postfix": " \uE0B1\u2800" } }, { "type": "root", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#ff0000", "properties": { "root_icon": " root" } }, { "background": "#008EF4", "foreground": "#ffffff", "powerline_symbol": "", "properties": { "folder_separator_icon": "  ", "home_icon": "ﴤ", "style": "mixed", "mapped_locations": { "C:": " C:" } }, "style": "powerline", "type": "path" }, { "type": "owm", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#FF0000", "properties": { "apikey": "xxx", "location": "xxx", "enable_hyperlink": false, "http_timeout": 20 } }, { "background": "#fffb38", "foreground": "#193549", "powerline_symbol": "", "properties": { "ahead_and_behind_color": "#f26d50", "ahead_color": "#89d1dc", "behind_color": "#f17c37", "display_status": true, "display_stash_count": true, "display_upstream_icon": true, "local_changes_color": "#ff9248", "stash_count_icon": " ", "status_colors_enabled": true }, "style": "powerline", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "", "properties": { "display_version": true, "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "node" }, { "background": "#8ED1F7", "foreground": "#111111", "powerline_symbol": "", "properties": { "display_version": true, "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "go" }, { "background": "#4063D8", "foreground": "#111111", "powerline_symbol": "", "properties": { "display_version": true, "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "julia" }, { "background": "#FFDE57", "foreground": "#111111", "powerline_symbol": "", "properties": { "display_mode": "files", "display_version": true, "display_virtual_env": false, "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "python" }, { "background": "#AE1401", "foreground": "#ffffff", "powerline_symbol": "", "properties": { "display_mode": "files", "display_version": true, "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "ruby" }, { "background": "#FEAC19", "foreground": "#ffffff", "powerline_symbol": "", "properties": { "display_mode": "files", "display_version": false, "prefix": " ", "postfix": "\u2800" }, "style": "powerline", "type": "azfunc" }, { "background_templates": [ "{{if contains \"default\" .Profile}}#FFA400{{end}}", "{{if contains \"jan\" .Profile}}#f1184c{{end}}" ], "foreground": "#ffffff", "powerline_symbol": "", "properties": { "display_default": false, "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "aws" }, { "type": "dart", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#06A4CE", "properties": { "prefix": " \uE798 ", "postfix": "\u2800" } }, { "type": "spotify", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#1BD760", "properties": { "prefix": " 阮 ", "playing_icon": " ", "paused_icon": " ", "stopped_icon": "栗 ", "track_separator": " ♪ ", "postfix": "\u2800" } }, { "background": "#83769c", "foreground": "#ffffff", "leading_diamond": "", "properties": { "always_enabled": true, "prefix": "<transparent></> 羽", "postfix": "\u2800" }, "style": "plain", "trailing_diamond": "", "type": "executiontime" }, { "background": "#2e9599", "foreground": "#ffffff", "leading_diamond": "", "properties": { "always_enabled": true, "color_background": true, "display_exit_code": false, "error_color": "#f1184c", "prefix": "<#83769c></> ﰌ", "postfix": "\u2800" }, "style": "diamond", "trailing_diamond": " ", "type": "exit" } ], "type": "prompt" }, { "segments": [ { "background": "#0077c2", "foreground": "#ffffff", "properties": { "postfix": " <transparent,#0077c2></>", "prefix": "<#0077c2,transparent></>  " }, "style": "plain", "type": "shell" }, { "background": "#1BD760", "foreground": "#111111", "invert_powerline": true, "powerline_symbol": "", "properties": { "paused_icon": " ", "playing_icon": " ", "prefix": "  ", "postfix": "\u2800" }, "style": "powerline", "type": "ytm" }, { "background": "#f36943", "foreground": "#ffffff", "invert_powerline": true, "powerline_symbol": "", "properties": { "battery_icon": "", "charged_color": "#4caf50", "charged_icon": " ", "charging_color": "#40c4ff", "charging_icon": " ", "color_background": true, "discharging_color": "#ff5722", "discharging_icon": " ", "postfix": " " }, "style": "powerline", "type": "battery" }, { "background": "#2e9599", "foreground": "#ffffff", "invert_powerline": true, "leading_diamond": "", "style": "diamond", "trailing_diamond": "", "type": "time", "properties": { "time_format": " 3:04pm EST" } } ], "type": "rprompt" } ], "console_title": true, "console_title_style": "template", "console_title_template": "{{if .Root}} ☠ root{{end}} {{ .Shell }} in {{ .Folder }}", "final_space": true }

Here's how it should look, via ssh:
ssh

Here's how it looks using mosh:
mosh

What OS are you seeing the problem on?

Linux

Which shell are you using?

zsh

Log output

Here are the timings of segments in your prompt:

ConsoleTitle(true)   -   0 ms - uni in ~
os(true)             -   0 ms -   
session(true)        -   0 ms -   xxx@xxx
root(false)          -   0 ms -
path(true)           -   0 ms -  ﴤ 
owm(false)           -  20 ms -
git(false)           -   0 ms -
node(false)          -   0 ms -
go(false)            -   0 ms -
julia(false)         -   0 ms -
python(false)        -   0 ms -
ruby(false)          -   0 ms -
azfunc(false)        -   0 ms -
aws(false)           -   0 ms -
dart(false)          -   0 ms -
spotify(false)       -   0 ms -
executiontime(true)  -   0 ms -  羽0ms
exit(true)           -   0 ms -  ﰌ  
shell(true)          -   0 ms -   uni 
ytm(false)           -   0 ms -
battery(false)       -   0 ms -
time(true)           -   0 ms -   6:09pm xxx
@hanskokx hanskokx added the 🐛 bug Something isn't working label Jan 5, 2022
@JanDeDobbeleer
Copy link
Owner

@hanskokx seems like mosh doesn't like inverted ANSI. I found the following issues which might put you in the right direction.

@JanDeDobbeleer JanDeDobbeleer added 🏝 external The issue isn't with oh-my-posh 🤔 info needed Further information is requested and removed 🐛 bug Something isn't working labels Jan 6, 2022
@stale
Copy link

stale bot commented Jan 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 💤 stale label Jan 13, 2022
@mwasowski
Copy link

@hanskokx Out of curiosity, what terminal app is it? :)

@stale stale bot removed the 💤 stale label Jan 20, 2022
@hanskokx
Copy link
Contributor Author

@hanskokx Out of curiosity, what terminal app is it? :)

FluentTerminal

@mwasowski
Copy link

FluentTerminal

thanks!

@JanDeDobbeleer
Copy link
Owner

@hanskokx can we close this on our end as there's not much we can do (maybe get some info at Fluent Terminal?)

@hanskokx
Copy link
Contributor Author

hanskokx commented Jan 20, 2022 via email

Copy link

github-actions bot commented Mar 4, 2024

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues.
If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🏝 external The issue isn't with oh-my-posh 🤔 info needed Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants