76 |
|
|
77 |
|
static int inpcheck; /* whence to check input */ |
78 |
|
|
79 |
< |
extern char *malloc(), *getcombuf(); |
79 |
> |
extern char *malloc(); |
80 |
|
|
81 |
|
static int x11_close(), x11_clear(), x11_paintr(), x11_errout(), |
82 |
|
x11_getcur(), x11_comout(), x11_comin(), x11_flush(); |
312 |
|
n = read(fileno(stdin), buf, sizeof(buf)-1); |
313 |
|
if (n > 0) { |
314 |
|
buf[n] = '\0'; |
315 |
< |
strcpy(getcombuf(&x11_driver), buf); |
315 |
> |
tocombuf(buf, &x11_driver); |
316 |
|
} |
317 |
|
} |
318 |
|
} |
382 |
|
char *outp; |
383 |
|
{ |
384 |
|
fputs(outp, stdout); |
385 |
+ |
fflush(stdout); |
386 |
|
} |
387 |
|
|
388 |
|
|
576 |
|
fixwindow(eexp) /* repair damage to window */ |
577 |
|
register XExposeEvent *eexp; |
578 |
|
{ |
579 |
+ |
char buf[80]; |
580 |
+ |
|
581 |
|
if (eexp->window == gwind) { |
582 |
< |
sprintf(getcombuf(&x11_driver), "repaint %d %d %d %d\n", |
582 |
> |
sprintf(buf, "repaint %d %d %d %d\n", |
583 |
|
eexp->x, gheight - eexp->y - eexp->height, |
584 |
|
eexp->x + eexp->width, gheight - eexp->y); |
585 |
+ |
tocombuf(buf, &x11_driver); |
586 |
|
} else if (eexp->window == comline->w) { |
587 |
|
if (eexp->count == 0) |
588 |
|
xt_redraw(comline); |
602 |
|
x11_driver.xsiz = gwidth < MINWIDTH ? MINWIDTH : gwidth; |
603 |
|
x11_driver.ysiz = gheight < MINHEIGHT ? MINHEIGHT : gheight; |
604 |
|
|
605 |
< |
strcpy(getcombuf(&x11_driver), "new\n"); |
605 |
> |
tocombuf("new\n", &x11_driver); |
606 |
|
} |