version 1.9, 2001/05/23 22:01:44 |
version 1.10, 2001/05/23 22:20:35 |
|
|
static int veread __P((const char *, char *buf, int, int, va_list)); |
static int veread __P((const char *, char *buf, int, int, va_list)); |
static int complt __P((int, int, char *, int)); |
static int complt __P((int, int, char *, int)); |
static int complt_list __P((int, int, char *, int)); |
static int complt_list __P((int, int, char *, int)); |
static VOID eformat __P((const char *, va_list)); |
static void eformat __P((const char *, va_list)); |
static VOID eputi __P((int, int)); |
static void eputi __P((int, int)); |
static VOID eputl __P((long, int)); |
static void eputl __P((long, int)); |
static VOID eputs __P((char *)); |
static void eputs __P((char *)); |
static VOID eputc __P((char)); |
static void eputc __P((char)); |
static LIST *copy_list __P((LIST *)); |
static LIST *copy_list __P((LIST *)); |
|
|
int epresf = FALSE; /* stuff in echo line flag */ |
int epresf = FALSE; /* stuff in echo line flag */ |
|
|
/* |
/* |
* Erase the echo line. |
* Erase the echo line. |
*/ |
*/ |
VOID |
void |
eerase() |
eerase() |
{ |
{ |
ttcolor(CTEXT); |
ttcolor(CTEXT); |
|
|
goto done; |
goto done; |
case CCHR('G'): /* bell, abort */ |
case CCHR('G'): /* bell, abort */ |
eputc(CCHR('G')); |
eputc(CCHR('G')); |
(VOID)ctrlg(FFRAND, 0); |
(void)ctrlg(FFRAND, 0); |
ttflush(); |
ttflush(); |
return ABORT; |
return ABORT; |
case CCHR('H'): /* rubout, erase */ |
case CCHR('H'): /* rubout, erase */ |
|
|
* routine. |
* routine. |
*/ |
*/ |
/* VARARGS */ |
/* VARARGS */ |
VOID |
void |
#ifdef __STDC__ |
#ifdef __STDC__ |
ewprintf(const char *fmt, ...) |
ewprintf(const char *fmt, ...) |
#else /* __STDC__ */ |
#else /* __STDC__ */ |
|
|
* Note: %c works, and prints the "name" of the character. |
* Note: %c works, and prints the "name" of the character. |
* %k prints the name of a key (and takes no arguments). |
* %k prints the name of a key (and takes no arguments). |
*/ |
*/ |
static VOID |
static void |
eformat(fp, ap) |
eformat(fp, ap) |
const char *fp; |
const char *fp; |
va_list ap; |
va_list ap; |
|
|
c = *fp++; |
c = *fp++; |
switch (c) { |
switch (c) { |
case 'c': |
case 'c': |
(VOID)keyname(kname, va_arg(ap, int)); |
(void)keyname(kname, va_arg(ap, int)); |
eputs(kname); |
eputs(kname); |
break; |
break; |
|
|
|
|
/* |
/* |
* Put integer, in radix "r". |
* Put integer, in radix "r". |
*/ |
*/ |
static VOID |
static void |
eputi(i, r) |
eputi(i, r) |
int i, r; |
int i, r; |
{ |
{ |
|
|
/* |
/* |
* Put long, in radix "r". |
* Put long, in radix "r". |
*/ |
*/ |
static VOID |
static void |
eputl(l, r) |
eputl(l, r) |
long l; |
long l; |
int r; |
int r; |
|
|
/* |
/* |
* Put string. |
* Put string. |
*/ |
*/ |
static VOID |
static void |
eputs(s) |
eputs(s) |
char *s; |
char *s; |
{ |
{ |
|
|
* Put character. Watch for control characters, and for the line getting |
* Put character. Watch for control characters, and for the line getting |
* too long. |
* too long. |
*/ |
*/ |
static VOID |
static void |
eputc(c) |
eputc(c) |
char c; |
char c; |
{ |
{ |
|
|
} |
} |
} |
} |
|
|
VOID |
void |
free_file_list(lp) |
free_file_list(lp) |
LIST *lp; |
LIST *lp; |
{ |
{ |