Go to the documentation of this file.
63 extern char getch(
void);
78# define KB_DIRECTION(c) (c == 0x1b && getch() == 0x5b && (c = getch()) >= 0x41 && c <= 0x44)
79# define KB_UPARROW 0x41
80# define KB_DNARROW 0x42
81# define KB_RTARROW 0x43
82# define KB_LTARROW 0x44
85#if (defined(_WIN32) || defined(WIN32)) && !defined(MSDOS)
93# define getch() getchar()
102# define KB_DIRECTION(c) (c == '\0' && ((c = (char)getch()) == 0x48 || c == 0x4b || c == 0x4d || c == 0x50))
103# define KB_UPARROW 0x48
104# define KB_DNARROW 0x50
105# define KB_RTARROW 0x4d
106# define KB_LTARROW 0x4b
109#if !defined(VAX) && !defined(MSDOS) && !defined(__MSL__)
125# define KB_DIRECTION(c) (c == 0x1b && getch() == 0x5b && (c = getch()) >= 0x41 && c <= 0x44)
126# define KB_UPARROW 0x41
127# define KB_DNARROW 0x42
128# define KB_RTARROW 0x43
129# define KB_LTARROW 0x44
139# define KB_DIRECTION(c) (c == 0x1b && getch() == 0x5b && (c = getch()) >= 0x41 && c <= 0x44)
140# define KB_UPARROW XK_Up
141# define KB_DNARROW XK_Down
142# define KB_RTARROW XK_Right
143# define KB_LTARROW XK_Left
149# define Min(x, y) ((x) < (y) ? (x) : (y))
152# define Max(x, y) ((x) > (y) ? (x) : (y))
158 extern size_t fread_check(
char str[],
void* buffer,
size_t size, FILE* infile);
159 extern size_t fwrite_check(
char str[],
void* buffer,
size_t size, FILE* outfile);
160 extern void fseek_check(
char str[], FILE* file,
long offset,
int pos);
162 extern int asknr(
char str[],
int minv,
int maxv,
int def);
164 extern void message(
char* fmt, ...);
165 extern void error(
char* fmt, ...);