24 |
|
extern int stderr_v(); /* error vectors */ |
25 |
|
extern int (*wrnvec)(), (*errvec)(), (*cmdvec)(); |
26 |
|
|
27 |
< |
extern struct driver *comm_init(); /* stream interface */ |
27 |
> |
/* stream interface */ |
28 |
> |
extern struct driver *comm_init(), *slave_init(); |
29 |
|
/* magic numbers for verification */ |
30 |
|
#define COM_SENDM 0x6f37 |
31 |
|
#define COM_RECVM 0x51da |
44 |
|
struct driver *(*init)(); /* initialize device */ |
45 |
|
} devtable[]; /* supported devices */ |
46 |
|
|
47 |
+ |
extern char dev_default[]; /* default device name */ |
48 |
+ |
|
49 |
|
#define MB1 ('\n') /* mouse button 1 */ |
50 |
|
#define MB2 ('\r') /* mouse button 2 */ |
51 |
|
#define MB3 (' ') /* mouse button 3 */ |
104 |
|
* assuming the in buffer is big enough. Unless prompt is NULL, |
105 |
|
* the driver may substitute its own rview command. This is |
106 |
|
* the most reliable way to repaint areas of the screen. |
107 |
< |
* If the user enters an unrecognized control character is entered, |
107 |
> |
* If the user enters an unrecognized control character, |
108 |
|
* terminate input and return the string with only that character. |
109 |
|
* The input string should not contain a newline. The routines in |
110 |
|
* editline.c may be useful. Comin must work in consort with comout. |