Skip to content
/ pfmt Public

A command line utility and library for creating colorful text

License

Notifications You must be signed in to change notification settings

tkaden4/pfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pfmt

A command line utility and library for creating pretty printing and terminal graphics.

See examples/ for examples.

Build and Install

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

CLI Usage

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.

-x|--xpos -y|--ypos

The x and y position for the start of the text, starting at 0 from the top left of the screen.

-f|--fg and -b|--bg

The foreground/background color to be used, in 24-bit hexadecimal format. For example, ff0000 is red, 00ff00 is green, and 0000ff is blue.

-c|--clear

Clear the screen before printing.

-k|--kill-line

Kill the line before printing.

strings...

A list of arguments to be printed with the specified attributes.