--- ray/src/rt/tty.c 1989/02/02 10:41:48 1.1 +++ ray/src/rt/tty.c 1990/01/30 11:37:47 1.3 @@ -81,12 +81,14 @@ getch() /* get a character in raw mode */ static -ttyin(buf) /* read a line in raw mode */ -char *buf; +ttyin(buf, prompt) /* read a line in raw mode */ +char *buf, *prompt; { int getch(); - editline(buf, getch, ttydev->comout, ttymode.sg_erase, ttymode.sg_kill); + if (prompt != NULL) + (*ttydev->comout)(prompt); + editline(buf, getch, ttydev->comout); }