A command line utility and library for creating pretty printing and terminal graphics.
See examples/
for examples.
To install both library and program
make ; make install
To install just the dynamic library
make lib ; make install-lib
To install just the program
make pfmt ; make install-exe
To build examples in examples/
make ex
pfmt [-x|--xpos <xpos> -y|--ypos <ypos>] [-f|--fg <fg-color>] [-b|--bg <bg-color>] [-c|--clear] [-k|--kill-line] [strings...]
If strings...
is not supplied, input will be read from stdin.
The x and y position for the start of the text, starting at 0 from the top left of the screen.
The foreground/background color to be used, in 24-bit hexadecimal format.
For example, ff0000
is red, 00ff00
is green, and 0000ff
is blue.
Clear the screen before printing.
Kill the line before printing.
A list of arguments to be printed with the specified attributes.