45 |
|
int ambincl = -1; /* include == 1, exclude == 0 */ |
46 |
|
|
47 |
|
int greyscale = 0; /* map colors to brightness? */ |
48 |
< |
char *devname = "X"; /* output device name */ |
48 |
> |
char *devname = dev_default; /* output device name */ |
49 |
|
|
50 |
|
struct driver *dev = NULL; /* driver functions */ |
51 |
|
|
145 |
|
char inpbuf[256]; |
146 |
|
char *args; |
147 |
|
again: |
148 |
< |
(*dev->comout)(prompt); /* get command + arguments */ |
149 |
< |
(*dev->comin)(inpbuf); |
148 |
> |
(*dev->comin)(inpbuf, prompt); /* get command + arguments */ |
149 |
|
for (args = inpbuf; *args && *args != ' '; args++) |
150 |
|
; |
151 |
|
if (*args) *args++ = '\0'; |