File: vt100.h

package info (click to toggle)
splitvt 1.6.6-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,004 kB
  • sloc: ansic: 4,953; sh: 99; perl: 15; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 1,311 bytes parent folder | download
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);			/* Initialize the window */
extern void  set_win(int);			/* Move the cursor to current window */
extern int   vt_write(int, char *, int, int *);	/* Write a buffer to a window */
extern char  vt_prompt(char *);			/* Prompt the user and return a char */
extern void  vt_info(char *);			/* Print out an info message */
extern char *vt_getsel(int, char *, int);	/* Get a selection on the window */
extern char *vt_setselbuf(char *);		/* Set the selection buffer */
extern char *vt_getselbuf();		/* Get the selection buffer */
extern void  vt_redraw();		/* Repaint a window from RAM */
extern void  vt_showscreen(char *, char**);	/* Show a (help) screen */
extern void  end_vt100();		/* 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 */