Now uses fd 0 instead of trying to explicitly open /dev/tty.

This commit is contained in:
dtrg 2007-02-20 00:38:13 +00:00
parent 611bc73043
commit 08431edbdb

View file

@ -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.