MNIST-1LNN  1.0
A simple 1-layer neural network to recognize handwritten single digit numbers from the MNIST image files.
Typedefs | Enumerations | Functions
screen.h File Reference

Utitlies for advanced input and output to terminal screen. More...

Go to the source code of this file.

Typedefs

typedef enum Color Color
 

Enumerations

enum  Color {
  WHITE, RED, GREEN, YELLOW,
  BLUE, CYAN
}
 

Functions

void clearScreen (void)
 Clear terminal screen by printing an escape sequence. More...
 
void setColor (Color c)
 Set text color in terminal by printing an escape sequence. More...
 
void locateCursor (const int row, const int col)
 Set cursor position to given coordinates in the terminal window. More...
 

Detailed Description

Utitlies for advanced input and output to terminal screen.

Author
Matt Lind
Date
July 2015

Definition in file screen.h.

Typedef Documentation

typedef enum Color Color

Enumeration Type Documentation

enum Color
Enumerator
WHITE 
RED 
GREEN 
YELLOW 
BLUE 
CYAN 

Definition at line 8 of file screen.h.

Function Documentation

void clearScreen ( void  )

Clear terminal screen by printing an escape sequence.

Clear terminal screen by printing an escape sequence

Definition at line 19 of file screen.c.

void locateCursor ( const int  row,
const int  col 
)

Set cursor position to given coordinates in the terminal window.

Parameters
rowRow number in terminal screen
colColumn number in terminal screen

Set cursor position to given coordinates in the terminal window

Definition at line 57 of file screen.c.

void setColor ( Color  c)

Set text color in terminal by printing an escape sequence.

Set text color in terminal by printing an escape sequence

Definition at line 30 of file screen.c.