check transfer
0.1
Check data transfer for SDAccell OpenCL application
host_util
term_table.h
Go to the documentation of this file.
1
#ifndef __TERM_TABLE__
2
#define __TERM_TABLE__
3
4
#define ESC "\033"
5
6
//Format text
7
#define RESET 0
8
#define BRIGHT 1
9
#define DIM 2
10
#define UNDERSCORE 3
11
#define BLINK 4
12
#define REVERSE 5
13
#define HIDDEN 6
14
15
//Foreground Colours (text)
16
17
#define F_BLACK 30
18
#define F_RED 31
19
#define F_GREEN 32
20
#define F_YELLOW 33
21
#define F_BLUE 34
22
#define F_MAGENTA 35
23
#define F_CYAN 36
24
#define F_WHITE 37
25
26
//Background Colours
27
#define B_BLACK 40
28
#define B_RED 41
29
#define B_GREEN 42
30
#define B_YELLOW 44
31
#define B_BLUE 44
32
#define B_MAGENTA 45
33
#define B_CYAN 46
34
#define B_WHITE 47
35
36
#define CELL_WIDTH 14
37
#define CELL_HEIGHT 2
38
39
//------------------------------------------------------------------------------
40
41
#define home() printf(ESC "[H") //Move cursor to the indicated row, column (origin at 1,1)
42
#define clrscr() printf(ESC "[2J") //Clear the screen, move to (1,1)
43
#define gotoxy(x,y) printf(ESC "[%d;%dH", y, x);
44
#define visible_cursor() printf(ESC "[?251");
45
#define save_pos() printf("\x1b[s");
46
#define restore_pos() printf("\x1b[u");
47
#define resetcolor() printf(ESC "[0m")
48
#define set_display_atrib(color) printf(ESC "[%dm",color)
49
50
//------------------------------------------------------------------------------
51
52
typedef
struct
_cell_t
{
53
int
x
;
54
int
y
;
55
int
row
;
56
int
col
;
57
char
s
[32];
58
}
cell_t
;
59
60
//------------------------------------------------------------------------------
61
62
#include <vector>
63
64
//------------------------------------------------------------------------------
65
66
struct
row_t
{
67
int
num
;
68
std::vector<cell_t>
c
;
69
};
70
71
//------------------------------------------------------------------------------
72
73
#endif
/*__TERM_TABLE__*/
_cell_t
Definition:
term_table.h:52
_cell_t::col
int col
Definition:
term_table.h:56
row_t::num
int num
Definition:
term_table.h:67
row_t::c
std::vector< cell_t > c
Definition:
term_table.h:68
_cell_t::row
int row
Definition:
term_table.h:55
_cell_t::s
char s[32]
Definition:
term_table.h:57
cell_t
struct _cell_t cell_t
_cell_t::y
int y
Definition:
term_table.h:54
row_t
Definition:
term_table.h:66
_cell_t::x
int x
Definition:
term_table.h:53
Generated by
1.8.13