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

Emojis don't take enough space, some stay floating. #51385

Closed
berithpy opened this issue Jun 7, 2018 · 7 comments
Closed

Emojis don't take enough space, some stay floating. #51385

berithpy opened this issue Jun 7, 2018 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal General terminal issues that don't fall under another label upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@berithpy
Copy link

berithpy commented Jun 7, 2018

screenshot from 2018-06-07 15-26-14
I found similar issues but not exact ones. I was scrolling through my shell history with the up arrow in the keyboard and after going past some emojis they stayed floating there (the eggplant and fire one) after clearing and changing folders some of the remnants disappeared.

  • VSCode Version: 1.24
  • OS Version: Ubuntu 18.04

Steps to Reproduce:

1.Use color emojis on the terminal

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Jun 7, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Jun 7, 2018
@berithpy
Copy link
Author

berithpy commented Jun 7, 2018

Some more info, it looks like the emojis remove spaces from their left when you are scrolling through your shell history.

@Tyriar
Copy link
Member

Tyriar commented Jun 8, 2018

Created upstream issue: xtermjs/xterm.js#1502

@berithpy can you comment exact repro steps how you got to this state? Really granular at like the keystroke level like "foo", enter, etc...

@berithpy
Copy link
Author

berithpy commented Jun 8, 2018

ok!

  • Open the integrated terminal
  • Create a folder with an emoji as its name with mkdir 🍆
  • Open the folder with cd 🍆
  • Use ls
  • Scroll through those three commands with ↑ key or ↓ key like this ↑↑ ↓↓ ↑↑ ↓↓ ↑↑ ↓↓ multiple times.

To input the emojis I pasted or wrote them with the special character input (ctrl+shift+u) it didn't seem to make a difference.
Gif example, sorry for the quality!
emoji4

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Sep 18, 2018
@vexx32
Copy link

vexx32 commented Jan 20, 2019

I'd also like to bring up that a majority of Gitmoji do not render correctly:

image

Not sure if this should be in a separate issue or not, though. 😄

@seva0stapenko
Copy link

The issue with emoji spacing and subsequent issues with viewing/editing commands from history can be observed on Macs as well. My setup is OSX Mojave 10.14.6 and VSCode 1.38.1.
PS1 is defined as:
PS1="[[\033[01;38;5;46m]\u[\033[00m]🌀\h: [\033[01;38;5;46m]\W[\033[00m]] $ "

(At) emoji is clipped in VSCode terminal window.
Editing/viewing bash command history is a mess, especially with long commands that span more than a single line.

@Tyriar
Copy link
Member

Tyriar commented Oct 8, 2019

Artifacts left -> xtermjs/xterm.js#1502

The half width thing is tracked in xtermjs/xterm.js#1709

@Tyriar Tyriar closed this as completed Oct 8, 2019
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 8, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal General terminal issues that don't fall under another label upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants