diff options
Diffstat (limited to 'sys/cmd/rc/input.c')
-rw-r--r-- | sys/cmd/rc/input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/cmd/rc/input.c b/sys/cmd/rc/input.c index 4c6b37f..228b2d8 100644 --- a/sys/cmd/rc/input.c +++ b/sys/cmd/rc/input.c @@ -995,7 +995,7 @@ notty(void) for(;;){
c = fgetc(stdin);
- put(&proc->cmd.io, c);
+ put(&runner->cmd.io, c);
}
}
@@ -1019,17 +1019,17 @@ readline(char *prompt) int n;
// reset the command buffer
- proc->cmd.io->e = proc->cmd.io->b = proc->cmd.io->buf;
+ runner->cmd.io->e = runner->cmd.io->b = runner->cmd.io->buf;
if(!shell.interactive)
return notty();
- if((n = raw(proc->cmd.io->e, proc->cmd.io->cap-1, prompt)) == -1)
+ if((n = raw(runner->cmd.io->e, runner->cmd.io->cap-1, prompt)) == -1)
return 0;
- proc->cmd.io->e += n;
+ runner->cmd.io->e += n;
/* insert a newline character at the end */
- put(&proc->cmd.io, '\n');
+ put(&runner->cmd.io, '\n');
printf("\n");
return 1;
|