Vscode: Emojis don't take enough space, some stay floating.

Created on 7 Jun 2018  ยท  7Comments  ยท  Source: microsoft/vscode


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

*duplicate bug integrated-terminal upstream

All 7 comments

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

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

Created upstream issue: https://github.com/xtermjs/xterm.js/issues/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...

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

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. ๐Ÿ˜„

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

curtw picture curtw  ยท  3Comments

ryan-wong picture ryan-wong  ยท  3Comments

trstringer picture trstringer  ยท  3Comments

sirius1024 picture sirius1024  ยท  3Comments

philipgiuliani picture philipgiuliani  ยท  3Comments