Skip to content

This is a library with a collection of functions for making terminal programs, based on escape codes.

License

Notifications You must be signed in to change notification settings

erikivanmelo/cliesc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CLIESC

This is a library with a collection of functions for making terminal programs, based on escape codes.

Cursor functions

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

Attributes macros

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

Attributes functions

attrreset() Resets the font attribute

void attr(int attr) Turn on font attributes

void attroff(int attr) Turn on font attributes

About

This is a library with a collection of functions for making terminal programs, based on escape codes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages