-
Notifications
You must be signed in to change notification settings - Fork 1
/
raw.h
33 lines (29 loc) · 869 Bytes
/
raw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* raw.h, Zepto Emacs, Public Domain, Hugh Barney, 2017, Derived from: Anthony's Editor January 93 *
* emulate ncurses functions using raw ttyio and VT100 escape sequences */
extern int LINES;
extern int COLS;
void initscr(void);
void addch(char);
void addstr(char *);
void refresh(void);
void clear(void);
void clrtoeol(void);
void standout(void);
void standend(void);
void move(int, int);
void mvaddstr(int, int, char *);
char getch();
void raw(void);
void noraw(void);
char *unctrl(char );
void flushinp(void);
#define FALSE 0
#define TRUE !FALSE
#define CLRSCR "\033[2J"
#define RESET_TTY "\033c"
#define HIDE_CURSOR "\033[?25l"
#define SHOW_CURSOR "\033[?25h"
#define CLREOL "\033[K"
#define GOTOXY "\033[%d;%dH"
#define TEXT_COLOR "\033[0m"
#define STATUS_COLOR "\033[7m"