[PATCH] vars.sh: remove unnecessary fork to speedup boot/upgrades

Thorsten Glaser t.glaser at tarent.de
Wed Sep 2 17:23:53 BST 2020

On Wed, 2 Sep 2020, Adam Borowski wrote:

> It's pointless to use tput.  It uses assumptions that made sense many
> decades ago, but do more ill than good nowadays (eg. on a serial console).
> The TERM variable is of no use as terminal/OS vendors stopped updating

Plus it has to be set first.

> A very paranoid list of supported commands, as of turn of the millenium:

These, plus 30 for black and 40‥47 for the background colours
(which we’ll not need) and 7 for inverse are the set one can
pretty much assume these days, indeed.

> The former doesn't even check isatty(), the latter uses codes that don't
> work on Hurd console or Linux < 3.16 (where I implemented them myself :) ).

ESC [ K also doesn’t (didn’t?) work on some terminals (KDE Konsole, IIRC)
and is still not universally supported. But, hey, it works on Poettering’s
laptop! ☻

Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font.	-- Rob Pike in "Notes on Programming in C"

More information about the Debian-init-diversity mailing list