MNIST-3LNN  1.0
A simple 3-layer neural network to recognize handwritten single digit numbers from the MNIST image files.
screen.h
Go to the documentation of this file.
1 /**
2  * @file screen.h
3  * @brief Utitlies for advanced input and output to terminal screen
4  * @author Matt Lind
5  * @date July 2015
6  */
7 
8 typedef enum Color {WHITE, RED, GREEN, YELLOW, BLUE, CYAN} Color;
9 
10 static const Color DEFAULT_TEXT_COLOR = WHITE;
11 
12 
13 
14 
15 /**
16  * @brief Clear terminal screen by printing an escape sequence
17  */
18 
19 void clearScreen(void);
20 
21 
22 
23 
24 /**
25  * @brief Set text color in terminal by printing an escape sequence
26  */
27 
28 void setColor(Color c);
29 
30 
31 
32 
33 /**
34  * @brief Set cursor position to given coordinates in the terminal window
35  * @param row Row number in terminal screen
36  * @param col Column number in terminal screen
37  */
38 
39 void locateCursor(const int row, const int col);
void setColor(Color c)
Set text color in terminal by printing an escape sequence.
Definition: screen.c:30
void locateCursor(const int row, const int col)
Set cursor position to given coordinates in the terminal window.
Definition: screen.c:57
Definition: screen.h:8
Definition: screen.h:8
Definition: screen.h:8
Color
Definition: screen.h:8
Definition: screen.h:8
Definition: screen.h:8
void clearScreen(void)
Clear terminal screen by printing an escape sequence.
Definition: screen.c:19
Definition: screen.h:8