Leaves of Three Open Source Projects

ansi-codes
Login

ansi-codes is a simple Python script that prints ANSI terminal escape codes to stdout, in a format suitable for copy-pasting into source code. You can select which categories of codes to print (e.g., only foreground color codes, only text style, etc.), and what programming language to use for the output.

If you're reading this on Github, you're looking at a mirror of the official repository, which exists at https://lot.twicetwo.com.

Installation

Save ansi-codes somewhere on your $PATH and then make it executable.

Run ansi-codes -h for more info.