-
Notifications
You must be signed in to change notification settings - Fork 0
/
vt100.h
26 lines (21 loc) · 1.37 KB
/
vt100.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
/* Global functions exported by vt100.c */
extern char *init_vt100(int reread_tsize); /* Initialize the window */
extern void set_win(int which); /* Move the cursor to current window */
extern int vt_write(int win, char *data, int len, int *source); /* Write a buffer to a window */
extern char vt_prompt(char *prompt); /* Prompt the user and return a char */
extern void vt_info(char *info); /* Print out an info message */
extern char *vt_getsel(int win, char *buf, int len); /* Get a selection on the window */
extern char *vt_setselbuf(char *buffer); /* Set the selection buffer */
extern char *vt_getselbuf(void); /* Get the selection buffer */
extern void vt_redraw(void); /* Repaint a window from RAM */
extern void vt_showscreen(char *title, char *text[]); /* Show a (help) screen */
extern void end_vt100(void); /* End the vt100 scrolling and such */
/* Handy definitions, sometimes passed to vt100.c functions */
#define UPPER 0 /* The upper window */
#define LOWER 1 /* The lower window */
#define ESC '\033' /* ^[ */
/* These four variables are accessable to the calling program */
extern int UU_lines; /* The user requested lines for the upper window */
extern int WU_lines; /* The number of lines for the upper window */
extern int WL_lines; /* The number of lines for the lower window */
extern int W_columns; /* The number of columns per window */