node -e "console.log('### Soft\xadhy\xadphen is awk\xadward in ter\xadmi\xadnals. ###')"
VTE/gnome-terminal has the same issue:
Others like konsole and kitty strip it from grid progression:
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:
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):
To me the last group makes the most sense, we could mimick that by using \u2010 as visual char for it:
For a stronger emphasis on the difference to a normal dash, we could also use \uff65:
Softhyphens have no screen repr in xterm.js.
Repro:
VTE/gnome-terminal has the same issue:![image](https://github.com/xtermjs/xterm.js/assets/6193135/c804b26a-98c7-433f-ac0d-b40f3d2e9472)
Others like konsole and kitty strip it from grid progression:![image](https://github.com/xtermjs/xterm.js/assets/6193135/c594fa54-1123-4fdf-8b56-12dd81b1fd50)
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](https://github.com/xtermjs/xterm.js/assets/6193135/11e36a9a-eb26-4a26-8329-16f0b1200860)
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](https://github.com/xtermjs/xterm.js/assets/6193135/f958d644-d265-4aeb-b5a8-311775ff8d85)
To me the last group makes the most sense, we could mimick that by using![image](https://github.com/xtermjs/xterm.js/assets/6193135/efdb02ab-001a-4da0-958c-c0be5a2b0123)
\u2010
as visual char for it:For a stronger emphasis on the difference to a normal dash, we could also use![image](https://github.com/xtermjs/xterm.js/assets/6193135/68aa3efe-6117-4472-bba5-61e1272277dd)
\uff65
:For ref, also see: https://en.wikipedia.org/wiki/Hyphen#Unicode