Deep Neural Network for MNIST Handwriting Recognition  1.0
Deep Neural Network for MNIST Handwriting Recognition
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
screen.h
Go to the documentation of this file.
1 
9 #ifndef SCREEN_HEADER
10 #define SCREEN_HEADER
11 
12 
13 // Include project libraries
14 #include "../dnn.h"
15 
16 
17 
18 typedef enum Color {WHITE, RED, GREEN, YELLOW, BLUE, CYAN} Color;
19 
20 static const Color DEFAULT_TEXT_COLOR = WHITE;
21 
22 
23 
24 
29 void clearScreen();
30 
31 
32 
33 
39 void setColor(Color c);
40 
41 
47 void moveCursorLeft(const int x);
48 
49 
50 
51 
57 void moveCursorTo(const int x);
58 
59 
60 
61 
68 void locateCursor(const int row, const int col);
69 
70 
71 
72 
79 void outputNetworkDefinition(int layerCount, LayerDefinition *layerDefs);
80 
81 
82 #endif
83 
void setColor(Color c)
Set text color in terminal by printing an escape sequence.
Definition: screen.c:35
void locateCursor(const int row, const int col)
Set cursor position to given coordinates in the terminal window.
Definition: screen.c:90
void outputNetworkDefinition(int layerCount, LayerDefinition *layerDefs)
Outputs a summary table of the network specified via the given array of layer definitions.
Definition: screen.c:136
Definition: screen.h:18
Definition: screen.h:18
void clearScreen()
Clear terminal screen by printing an escape sequence.
Definition: screen.c:24
Definition: screen.h:18
Color
Definition: screen.h:18
Definition: screen.h:18
void moveCursorTo(const int x)
Moves the cursor to the specified horizontal position in the current line.
Definition: screen.c:63
Definition: screen.h:18
Data structure allowing users to define the characteristics of a network.
Definition: dnn.h:54
Definition: screen.h:18
void moveCursorLeft(const int x)
Moves the cursor to the left of the current position by a specified number of steps.
Definition: screen.c:77