| 1 |
/************************************************************************** |
| 2 |
* This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is * |
| 3 |
* provided by Jonathan and Jovehacks without charge and without * |
| 4 |
* warranty. You may copy, modify, and/or distribute JOVE, provided that * |
| 5 |
* this notice is included in all the source files and documentation. * |
| 6 |
**************************************************************************/ |
| 7 |
|
| 8 |
extern jbool |
| 9 |
Asking, /* are we on read a string from the terminal? */ |
| 10 |
InRealAsk; /* are we currently executing real_ask()? */ |
| 11 |
|
| 12 |
extern int |
| 13 |
AskingWidth; /* width of question being asked */ |
| 14 |
|
| 15 |
extern char |
| 16 |
Minibuf[LBSIZE]; |
| 17 |
|
| 18 |
#define NULL_ASK_EXT ((jbool (*) (ZXchar)) NULL) |
| 19 |
|
| 20 |
/* ask for file or directory (only different under MSFILESYSTEM) */ |
| 21 |
#ifdef MSFILESYSTEM |
| 22 |
extern char |
| 23 |
*ask_file(const char *prmt, char *def, char *buf), |
| 24 |
*ask_dir(const char *prmt, char *def, char *buf); |
| 25 |
#else |
| 26 |
extern char |
| 27 |
*ask_ford(const char *prmt, char *def, char *buf); |
| 28 |
# define ask_file(prmt, def, buf) ask_ford(prmt, def, buf) |
| 29 |
# define ask_dir(prmt, def, buf) ask_ford(prmt, def, buf) |
| 30 |
#endif |
| 31 |
|
| 32 |
extern const char |
| 33 |
*ask(const char *, const char *, ...), |
| 34 |
*do_ask(const char *, jbool (*) (ZXchar), const char *, const char *, ...); |
| 35 |
|
| 36 |
extern jbool yes_or_no_p(const char *, ...); |
| 37 |
|
| 38 |
extern void minib_add(char *str, jbool movedown); |
| 39 |
|
| 40 |
/* Variables: */ |
| 41 |
|
| 42 |
extern ZXchar AbortChar; /* VAR: cancels command input */ |
| 43 |
extern jbool DispDefFs; /* VAR: display default filenames in prompt? */ |
| 44 |
#ifdef F_COMPLETION |
| 45 |
extern jbool DispBadFs; /* VAR: display filenames with bad extensions? */ |
| 46 |
extern char BadExtensions[128]; /* VAR: extensions (e.g. ".o") to ignore */ |
| 47 |
# ifndef MAC /* no environment in MacOS */ |
| 48 |
extern jbool DoEVexpand; /* VAR: should we expand evironment variables? */ |
| 49 |
# endif |
| 50 |
#endif |
| 51 |
extern jbool OneKeyConfirmation; /* VAR: single y or n keystroke sufficient? */ |