ReflexBall Rally
 All Data Structures Files Functions Variables Macros
Macros | Functions
ansi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ESC   0x1B
 
#define UP   'A'
 
#define DOWN   'B'
 
#define FORWARD   'C'
 
#define BACK   'D'
 

Functions

void fgcolor (unsigned char foreground)
 
void bgcolor (unsigned char background)
 
void color (unsigned char foreground, unsigned char background)
 
void resetbgcolor ()
 
void clrscr ()
 
void clreol ()
 
void gotoxy (unsigned char x, unsigned char y)
 
void underline (char on)
 
void blink (char on)
 
void reverse (char on)
 
unsigned char strlen (char *string)
 
void drawTopBot (unsigned char x, unsigned char y, unsigned char width, unsigned char left, unsigned char right, unsigned char side)
 
void drawSides (unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, unsigned char side)
 
void saveCursor ()
 
void getSavedCursor ()
 
void moveCursor (char dir, unsigned char n)
 
void graphicCommand (char command)
 

Macro Definition Documentation

#define ESC   0x1B

Definition at line 4 of file ansi.h.

#define UP   'A'

Definition at line 6 of file ansi.h.

#define DOWN   'B'

Definition at line 7 of file ansi.h.

#define FORWARD   'C'

Definition at line 8 of file ansi.h.

#define BACK   'D'

Definition at line 9 of file ansi.h.

Function Documentation

void fgcolor ( unsigned char  foreground)

Definition at line 5 of file ansi.c.

void bgcolor ( unsigned char  background)

Definition at line 25 of file ansi.c.

void color ( unsigned char  foreground,
unsigned char  background 
)

Definition at line 47 of file ansi.c.

void resetbgcolor ( )

Definition at line 56 of file ansi.c.

void clrscr ( )

Definition at line 60 of file ansi.c.

void clreol ( )

Definition at line 64 of file ansi.c.

void gotoxy ( unsigned char  x,
unsigned char  y 
)

Definition at line 68 of file ansi.c.

void underline ( char  on)

Definition at line 76 of file ansi.c.

void blink ( char  on)

Definition at line 83 of file ansi.c.

void reverse ( char  on)

Definition at line 90 of file ansi.c.

unsigned char strlen ( char *  string)

Definition at line 97 of file ansi.c.

void drawTopBot ( unsigned char  x,
unsigned char  y,
unsigned char  width,
unsigned char  left,
unsigned char  right,
unsigned char  side 
)

Definition at line 105 of file ansi.c.

void drawSides ( unsigned char  x1,
unsigned char  y1,
unsigned char  x2,
unsigned char  y2,
unsigned char  side 
)

Definition at line 115 of file ansi.c.

void saveCursor ( )

Definition at line 125 of file ansi.c.

void getSavedCursor ( )

Definition at line 129 of file ansi.c.

void moveCursor ( char  dir,
unsigned char  n 
)

Definition at line 133 of file ansi.c.

void graphicCommand ( char  command)

Definition at line 72 of file ansi.c.