MNIST-3LNN
1.0
A simple 3-layer neural network to recognize handwritten single digit numbers from the MNIST image files.
Main Page
Related Pages
Data Structures
Files
File List
Globals
util
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);
setColor
void setColor(Color c)
Set text color in terminal by printing an escape sequence.
Definition:
screen.c:30
locateCursor
void locateCursor(const int row, const int col)
Set cursor position to given coordinates in the terminal window.
Definition:
screen.c:57
CYAN
Definition:
screen.h:8
GREEN
Definition:
screen.h:8
YELLOW
Definition:
screen.h:8
Color
Color
Definition:
screen.h:8
WHITE
Definition:
screen.h:8
RED
Definition:
screen.h:8
clearScreen
void clearScreen(void)
Clear terminal screen by printing an escape sequence.
Definition:
screen.c:19
BLUE
Definition:
screen.h:8
Generated by
1.8.10