emojis inside PS1 offset cursor by 1
See original GitHub issue- OS version and name: High Sierra 10.13.2 (17C88)
- Hyper.app version: Hyper 1.4.8 (stable)
Issue
If I include an emoji inside PS1 my terminal cursor has an offset of 1.
export PS1="\w " # works
export PS1="\w 🐱" # issue
Any idea on what to do?
I took a screenshot to show the issue: https://imgur.com/a/Z2yxV
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:21 (3 by maintainers)
Top Results From Across the Web
emojis inside PS1 offset cursor by 1 · Issue #2587 - GitHub
This is with an emoji and a space. The emoji seems to take up 2 columns and the cursor does not respects that,...
Read more >How can I properly use two-character-width emoji in my bash ...
I want to use an American flag emoji in my bash prompt (i.e. PS1 environment variable). However, the American flag emoji causes the...
Read more >reverse-i-search generates an offset when prompt starts with an ...
What happened: the cursor is on the "2" and the whole command is offset by 2 characters you can move ... my UTF8...
Read more >Custom bash prompt - cursor positioning issue [duplicate]
On my CentOS VM I made a custom script for my bash prompt in ... However If I type a long command and...
Read more >KcT - River Thames Conditions - Environment Agency - GOV.UK
Party supplies cheap wholesale, 1 meter 70 in feet and inches. ... Monte carlo france casino, Northwold primary school, Pc monitor screen offset....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am still hitting this isse in Hyper 3.0.2 on stable and on canary.
Notice the space after the ghost. It appears in hyper like so:
You can see the ghost is taking up two character spaces. If I replace the ghost with a letter, like
A
you’ll get:To compare, this is what it looks like in my IDE. Ghost+space+“clear” against “A”+space+“clear”.
Fixed in https://github.com/vercel/hyper/pull/4679