Skip to content

input buffer doesn't clear out properly #397

Answered by chrisant996
VPraharsha03 asked this question in Q&A
Discussion options

You must be logged in to vote

@VPraharsha03 I've implemented a hack which can assume emoji (as defined in the Unicode v15.0 standard) are rendered as double-width characters in Windows Terminal. The new terminal.color_emoji setting defaults to auto, which assumes double-width when using Windows Terminal, or otherwise single-width characters. It can be set to on or off to force whether to assume the terminal supports color emoji.

The hack seems to work very well, at least for the cases you've shared. It can't ever be perfect because the Unicode standard constantly evolves, and different OS versions support different versions of the Unicode standard (and to varying degrees), and because of implementation details in diff…

Replies: 10 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@chrisant996
Comment options

Comment options

You must be logged in to vote
2 replies
@chrisant996
Comment options

@VPraharsha03
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@VPraharsha03
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by VPraharsha03
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@VPraharsha03
Comment options

Comment options

You must be logged in to vote
3 replies
@chrisant996
Comment options

@VPraharsha03
Comment options

@chrisant996
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants