This is a library with a collection of functions for making terminal programs, based on escape codes.
cup(n)
Moves the cursor n up
cdown(n)
Moves the cursor n down
cright(n)
Moves the cursor n to the right
cleft(n)
Moves the cursor n to the left
cnextline(n)
Moves the cursor to the beginning of n lines after the current one
cprevline(n)
Moves the cursor to the beginning of n lines before the current one
gotox(x)
Moves the cursor in a specific coordinate in X
gotoxy(x,y)
Moves the cursor in a specific coordinate in X and Y
csave()
Saves the actual cursor position
crestore()
Restore the cursor position
cshow()
Show cursor
chide()
Hide cursor
A_BOLD
Turn on the bold or increased intensity
A_UNDERLINE
Turn on the underline
A_DUNDERLINE
Turn on the double underline
A_BLINK
Turn on the blinking
A_RBLINK
Turn on the rapid blinking [not widely supported]
A_ITALIC
Turn on the italic (Sometimes treated as inverse or blink) [not widely supported]
A_REVERS
Swaps foreground and background colors,
A_STRIKE
Turn on the strike through
A_INVISIBLE
Make the text invisible
attrreset()
Resets the font attribute
void attr(int attr)
Turn on font attributes
void attroff(int attr)
Turn on font attributes