Color
This page describes how you can use PTerm to print colored output
PTerms color type is safe to use on every terminal that supports colored text. It follows the ANSI specifications and is very simple to use.
PTerms RGB type supports all 8 million colors of the RGB specification. It is not supported on older terminals, but PTerm will automatically convert it to the nearest ANSI color, if RGB is not supported.
PTerms style type is a collection of foreground colors, background colors and decorators. It can be used to combine ANSI colors.
Last modified 1yr ago