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

softhyphen not shown #4961

Open
jerch opened this issue Feb 15, 2024 · 0 comments
Open

softhyphen not shown #4961

jerch opened this issue Feb 15, 2024 · 0 comments
Labels

Comments

@jerch
Copy link
Member

jerch commented Feb 15, 2024

Softhyphens have no screen repr in xterm.js.

Repro:

node -e "console.log('### Soft\xadhy\xadphen is awk\xadward in ter\xadmi\xadnals. ###')"

image

VTE/gnome-terminal has the same issue:
image

Others like konsole and kitty strip it from grid progression:
image

Contour does something funny, it tries to keep the grid progression intact by moving follow-up chars to the left with creating bigger spaces in between:
image

Last but not least most older TEs like xterm, aterm and rxvt show a smaller dash inplace, thus have a visual repr and keep the grid progression intact (note the difference to the normal minus dash in the second line):
image

To me the last group makes the most sense, we could mimick that by using \u2010 as visual char for it:
image

For a stronger emphasis on the difference to a normal dash, we could also use \uff65:
image

For ref, also see: https://en.wikipedia.org/wiki/Hyphen#Unicode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant