check transfer  0.1
Check data transfer for SDAccell OpenCL application
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__*/
int col
Definition: term_table.h:56
int num
Definition: term_table.h:67
std::vector< cell_t > c
Definition: term_table.h:68
int row
Definition: term_table.h:55
char s[32]
Definition: term_table.h:57
struct _cell_t cell_t
int y
Definition: term_table.h:54
int x
Definition: term_table.h:53