|
|
@ -392,11 +392,9 @@ ttyread(void) {
|
|
|
|
|
|
|
|
|
|
|
|
if((ret = read(cmdfd, buf, LEN(buf))) < 0)
|
|
|
|
if((ret = read(cmdfd, buf, LEN(buf))) < 0)
|
|
|
|
die("Couldn't read from shell: %s\n", SERRNO);
|
|
|
|
die("Couldn't read from shell: %s\n", SERRNO);
|
|
|
|
else {
|
|
|
|
else
|
|
|
|
printf("ttyread %d\n", ret);
|
|
|
|
|
|
|
|
tputs(buf, ret);
|
|
|
|
tputs(buf, ret);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
ttywrite(const char *s, size_t n) {
|
|
|
|
ttywrite(const char *s, size_t n) {
|
|
|
|