Skip to content

Make behaviour of characters with problematic width configurable

Matan Ziv-Av requested to merge matan/konsole:soft-hyphen into master

Add a profile option to follow Unicode standard for the display width of characters, where this width differs from glibc's wcwidth.

Currently the only character affected by this is soft hyphen (unicode 0x00ad).

Konsole generally follows wcwidth() function when determining the display width of characters, since this is behaviour expected by libreadline, and doing otherwise corrupts lines containing problematic characters. When such characters are used more for display, then on the command line, following the Unicode standard may be prefferable.

The default for this option is disabled - that is follow wcwidth().

CCBUG: 464823

Merge request reports