Get the latest tech news

Safe Terminal Escape Codes


terminal escape codes Written on 22 May 2024 A long time ago when the Unix greybeards were slightly less grey beards everyone was using hardware terminals to talk to some mainframe. Those terminals had wildly different feature sets and ways to implement them, which you needed to know about if you wanted your program to run on more than one type of terminal.

A long time ago when the Unix greybeards were slightly less grey beards everyone was using hardware terminals to talk to some mainframe. Today everyone is using software terminal emulators, and they all just implement ANSI escape codes for the common stuff. Use “true” RGB colours; this is supported on almost all current terminal emulators, unless explicitly disabled by the user.

Get the Android app

Or read this on Hacker News