home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG005.ARC
/
WDEFINES.H
< prev
next >
Wrap
Text File
|
1979-12-31
|
1KB
|
25 lines
struct Window
{ int Column; /* Displacement from left side of Screen */
int Row; /* Displacement from top of Screen */
int Width; /* width of window in bytes */
int Depth; /* depth of window in bytes */
int CursX; /* cursor X displacement within the window */
int CursY; /* cursor Y displacement within the window */
char Fore; /* foreground colour */
char Back; /* background colour */
};
/* now to define all the control characters which may be in the string */
#define Bell 7 /* ^g ring the bell - no display */
#define Left 8 /* ^h move cursor left one position */
#define Tab 9 /* ^i space fill to next TAB position (8) */
#define Down 10 /* ^j move cursor down one line */
#define Up 11 /* ^k move cursor up one line */
#define Right 12 /* ^l move cursor right one position */
#define Return 13 /* ^m go to the beginning of the next line */
#define Clrline 20 /* ^t space fill rest of the current line */
#define Cancel 24 /* ^x to cancel input so far */
#define Clrpage 25 /* ^y space fill rest of window from here */
#define Clear 26 /* ^z space fill the window and go to top left */
#define Home 30 /* ^^ go to top left corner of the window */
#define Delete 127 /* DEL delete a character and move cursor back */