mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
use tty
This commit is contained in:
parent
a463d2a668
commit
97dafe411a
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue