From 97dafe411ab1f501cea5f1d4a14dbc9be549a767 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 24 Apr 2004 05:22:42 +0000 Subject: use tty --- src/cmd/p.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/p.c') diff --git a/src/cmd/p.c b/src/cmd/p.c index 63a9db3f..ba63dad8 100644 --- a/src/cmd/p.c +++ b/src/cmd/p.c @@ -17,9 +17,9 @@ main(int argc, char *argv[]) int n; int f; - if((cons = Bopen("/dev/cons", OREAD)) == 0) { - fprint(2, "p: can't open /dev/cons\n"); - exits("missing /dev/cons"); + if((cons = Bopen("/dev/tty", OREAD)) == 0) { + fprint(2, "p: can't open /dev/tty\n"); + exits("missing /dev/tty"); } Binit(&bout, 1, OWRITE); n = 0; -- cgit v1.2.3