Now uses fd 0 instead of trying to explicitly open /dev/tty.
This commit is contained in:
parent
611bc73043
commit
08431edbdb
|
@ -108,7 +108,13 @@ IMPLEMENTATION MODULE Terminal;
|
|||
END WriteString;
|
||||
|
||||
BEGIN
|
||||
(*
|
||||
tty := "/dev/tty";
|
||||
fildes := open(ADR(tty), 2);
|
||||
unread := FALSE;
|
||||
*)
|
||||
(* dtrg: changed so that instead of opening /dev/tty, fd 0 is always used. *)
|
||||
tty := "stdio";
|
||||
fildes := 0;
|
||||
unread := FALSE;
|
||||
END Terminal.
|
||||
|
|
Loading…
Reference in a new issue