blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.19k stars 578 forks source link

Mosh not coping with Inverted ANSI prompt #1451

Open katterfelto opened 2 years ago

katterfelto commented 2 years ago

Checklist

Configuration

Blink version: 15.0.7.536 iPadOS: 15.3.1 Remote O/S: Ubuntu 20.04

Problem

I use oh-my-posh as my prompt on my command lines. When I connect to a remote host using SSH the prompts are displayed as expected (once a suitable font is selected in Blink). Connecting to the same remote host using MOSH results in a corrupted prompt being displayed.

There is a closed issue on the oh-my-posh github repo Corrupt prompt when using mosh which was seen when using FluentTerminal. It looks like Blink may have the same problem with 'inverted ANSI' handling.

I expected the prompt to be displayed the same whether I connect using SSH or MOSH.

I can provide screen shots if required but the ones in the referenced issue above look very similar to what I'm seeing.

WestXu commented 2 years ago

Same problem.

SSH: image

Mosh: image

tfcace commented 1 year ago

I can confirm this, using starship, my prompt looks good when SSHing, but horrible with Mosh