Linux Command Prompt in Color

In this modern world, basically every terminal is compatible with VT-52 terminal sequences. These includes Windows Terminal (free from Microsoft on the Microsoft Store), Terminal.app (on macOS) and most terminals available under Linux. Further, most of these support emoji and 256 colors. Yet, most of the advice out there on how to deal with this suggests hard-coding these escape sequences directly into your prompt. This is great, and probably will work just fine, but I find it to be painful....

19 Nov 2021 · 3 min · Gary Allen Vollink