--- ray/src/rt/tty.c 1989/09/29 13:23:58 1.2 +++ ray/src/rt/tty.c 2003/02/25 02:47:23 2.3 @@ -1,15 +1,12 @@ -/* Copyright (c) 1987 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: tty.c,v 2.3 2003/02/25 02:47:23 greg Exp $"; #endif - /* * tty.c - i/o for terminal drivers. - * - * 4/24/87 */ +#include "copyright.h" + #include #include #include @@ -81,11 +78,13 @@ 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(); + if (prompt != NULL) + (*ttydev->comout)(prompt); editline(buf, getch, ttydev->comout); }