How to check if a terminal can display undercurl from within a bash/zsh script?
4
votes
1
answer
5445
views
How to check if a terminal can display undercurl from within a bash/zsh script?
In a recent project I used undercurl escape sequence for output printed by a zsh script. It works well in modern terminals, but Apple's Terminal.app shows that as a reversed background-foreground. It would be nice to be able to detect if the terminal has the ability to display undercurl, and only then use undercurl or default to regular underline.
Asked by codepoet
(626 rep)
Mar 21, 2022, 06:41 AM
Last activity: Mar 22, 2022, 06:49 AM
Last activity: Mar 22, 2022, 06:49 AM