Deep Neural Network for MNIST Handwriting Recognition  1.0
Deep Neural Network for MNIST Handwriting Recognition
Typedefs | Enumerations | Functions
screen.h File Reference

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

#include "../dnn.h"

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 ()
 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 moveCursorLeft (const int x)
 Moves the cursor to the left of the current position by a specified number of steps. More...
 
void moveCursorTo (const int x)
 Moves the cursor to the specified horizontal position in the current line. More...
 
void locateCursor (const int row, const int col)
 Set cursor position to given coordinates in the terminal window. More...
 
void outputNetworkDefinition (int layerCount, LayerDefinition *layerDefs)
 Outputs a summary table of the network specified via the given array of layer definitions. More...
 

Detailed Description

Utitlies for advanced input and output to the terminal screen.

Author
Matt Lind
Date
July 2015

Typedef Documentation

typedef enum Color Color

Enumeration Type Documentation

enum Color
Enumerator
WHITE 
RED 
GREEN 
YELLOW 
BLUE 
CYAN 

Function Documentation

void clearScreen ( )

Clear terminal screen by printing an escape sequence.

Clear terminal screen by printing an escape sequence

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
void moveCursorLeft ( const int  x)

Moves the cursor to the left of the current position by a specified number of steps.

Parameters
xNumber of steps that the cursor is moved to the left
void moveCursorTo ( const int  x)

Moves the cursor to the specified horizontal position in the current line.

Parameters
xHorizaontal coordinate to why the cursor is moved to
void outputNetworkDefinition ( int  layerCount,
LayerDefinition layerDefs 
)

Outputs a summary table of the network specified via the given array of layer definitions.

Parameters
layerCountThe number of layer in this network
layerDefsA pointer to an array of layer definitions
void setColor ( Color  c)

Set text color in terminal by printing an escape sequence.

Parameters
cColor code

Set text color in terminal by printing an escape sequence