From 77ba9809e7dcf25c2b5efecd1c38c2a4cf19238c Mon Sep 17 00:00:00 2001 From: Warren Toomey Date: Tue, 8 Mar 2016 06:48:06 +1000 Subject: [PATCH] Fixed a small tty handling bug. --- tools/a7out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/a7out b/tools/a7out index 8da1bd7..01ed008 100755 --- a/tools/a7out +++ b/tools/a7out @@ -944,7 +944,7 @@ sub sys_read { } $Mem[$addr] = $word; $count++; - last if ($tty && ($c1 eq "\n") || ($c2 eq "\n")); + last if ($tty && (($c1 && ($c1 eq "\n")) || ($c2 &&($c2 eq "\n")))); } # ascii }