Cursor moving out of sync with custom bash styles
- Dominant language
- Swift
- Stars
- 6.9k
- Forks
- 746
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I did a few custom bash settings to style my prompt, but when using blink shell from my iPad the cursor is getting out of sync while typing.
It would be great if you could have a look at it, it works with no issues in iterm2 for example.
iOS: 13
iPad Pro 2019
SSH into Ubuntu 20.4 LTS
Here are my settings in .bash_ps1:
# Custom bash prompt via kirsle.net/wizards/ps1.html
export PS1="\[$(tput setaf 4)\]\[$(tput setaf 2)\]\u\[$(tput setaf 4)\]@\[$(tput setaf 2)\]\W\[$(tput setaf 4)\]\\$ \[$(tput sgr0)\]"
#http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Tweaked prompt.
if [ -f "$HOME/.bash_ps1" ] && [[ $- == *i* ]]; then
. "$HOME/.bash_ps1"
fi`
Here is a video to show what I mean:
https://streamable.com/r8etue
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the cursor drift in Blink on the reported iPad setup, using the provided .bash_ps1 prompt while connected to Ubuntu over SSH; compare the behavior with iTerm2 and review the linked video. Done means the cursor remains synchronized while typing with the custom bash styles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, ios, ubuntu
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100