aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/p.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-24 05:22:42 +0000
committerrsc <devnull@localhost>2004-04-24 05:22:42 +0000
commit97dafe411ab1f501cea5f1d4a14dbc9be549a767 (patch)
tree1d051afa8ce1fb945dddc86dc7ca625fb119cd1e /src/cmd/p.c
parenta463d2a6687ff22cbb49f94f365bb6bc752536a7 (diff)
downloadplan9port-97dafe411ab1f501cea5f1d4a14dbc9be549a767.tar.gz
plan9port-97dafe411ab1f501cea5f1d4a14dbc9be549a767.tar.bz2
plan9port-97dafe411ab1f501cea5f1d4a14dbc9be549a767.zip
use tty
Diffstat (limited to 'src/cmd/p.c')
-rw-r--r--src/cmd/p.c6
1 files changed, 3 insertions, 3 deletions
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;