At 2019-09-16T17:16:12+0100, Warner Losh wrote:
I got to look at the source to a few other editors of
the era. All has
the terminal codes hard coded into them... it was common to do that
before things like termcap...
It's still common today. Everything the developer cares to think about,
let alone test on, interprets EMCA-48 SGR escape sequences. My favorite
recent example is "spectre-meltdown-checker", which has such edifying
lines as:
_info_nol "> \033[46m\033[30mSTATUS:\033[0m "
Why write something portable when you can be "close to the metal"? :-/
I gently steer people to better ways when the occasion presents itself.
Regards,
Branden