nocurses.h - A terminal screen manipulation library (colors, position, clears, attributes,...)
Go to file
Austin T Schaffer 54adda27a3
Fix demo.c Typo
Hey, saw your demo on Reddit. Cool stuff! Saw a typo while it was running though and figured I'd make a PR for it.

Cheers,
Austin
2019-10-22 22:06:13 -04:00
img smaller gif added 2019-10-22 15:53:58 -03:00
.DS_Store smaller gif added 2019-10-22 15:53:58 -03:00
LICENSE.txt added demo / extra functions 2019-10-22 00:44:20 -03:00
demo.c Fix demo.c Typo 2019-10-22 22:06:13 -04:00
nocurses.h added demo / extra functions 2019-10-22 00:44:20 -03:00
readme.md added demo / extra functions 2019-10-22 00:44:20 -03:00

readme.md

nocurses.h

This library provides terminal manipulation capability by the use of VT100 ESC sequences.

It is aimed to simple applications where ncurses is simple "too much".

Inspired by the old Borland conio.h for DOS.

Here's a demo (demo.c file avaiable in the same repo): nocurses.h

Functions Provided

Function Description Example
pause() Waits for the user to hit [ENTER]. pause();
clrscr() Clears the screen. clrscr();
gotoxy(x, y) Sets the cursor do the position x, y. Where x is the row number and y the line number. gotoxy(10,25);
setfontcolor(color_name) Sets the text color to one of the colors described on the color table below. setfontcolor(RED);
setbgrcolor(color_name) Sets the background color to one of the colors described on the color table below. setbgrcolor(BLUE);
setfontbold(status) Sets the bold attribute on or off. status can be TRUE or FALSE. setfontbold(TRUE);
setunderline(status) Sets the underline attribute on or off. status can be TRUE or FALSE. setunderline(FALSE);
setblink(status) Sets the blink attribute on or off. status can be TRUE or FALSE. setblink(TRUE);
clrline() Clears the row contents. clrline();
resetcolors() Reset terminal to default colors. clrline();

color_name

Valid color names are:

color_name
BLACK
RED
GREEN
YELLOW
BLUE
MAGENTA
CYAN
WHITE