vhs icon indicating copy to clipboard operation
vhs copied to clipboard

Emoji Support

Open sslivkoff opened this issue 10 months ago • 2 comments

Hi. vhs is a joy to use. However one of the emojis in my program does not output properly.

Is your feature request related to a problem? Please describe. Some emojis are supported but not others. I don't know the underlying cause

⏳ does work ⌛ does not work, instead showing up as a unicode emoji

image

Describe the solution you'd like ⌛ shows up in the output

sslivkoff avatar Oct 17 '23 04:10 sslivkoff

This is actually going to depend on what font you choose, I don't believe it has anything to do with VHS itself.

Make sure you select a font that supports the latest NerdFont (3) and it should work

PThorpe92 avatar Oct 22 '23 00:10 PThorpe92

This issue has been resolved by updating to the latest release of ttyd. On a Mac you can do:

brew install ttyd --HEAD

For those wondering, this was caused by xterm.js supporting only Unicode 6.

I added the xterm.js addon for Unicode 11 to ttyd. https://github.com/tsl0922/ttyd/pull/1310

Grapheme cluster support is coming to xterm.js but is currently experimental. This would have gotten us to Unicode 15, so for now this is as far as we can go.

No changes to VHS are necessary, however next time an official VHS container is built, it will also include the updated release of ttyd with these improvements.

@maaslalani Please mark this issue resolved.

mikelorant avatar Mar 11 '24 00:03 mikelorant