summaryrefslogtreecommitdiff
path: root/games/atc/main.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-09-02 06:58:11 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-09-02 06:58:11 +0000
commit72bd4b9ad45a0b3b7f04536889092b39943427b8 (patch)
tree718ab4a102d4b60ff08dd876d69ffedcdcac6913 /games/atc/main.c
parent5326b8381955c08bac2de3d52a2c20b54400e5a8 (diff)
use ICRNL; jsm28@cam.ac.uk
Diffstat (limited to 'games/atc/main.c')
-rw-r--r--games/atc/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/games/atc/main.c b/games/atc/main.c
index f0a38d46983..078b4bbd589 100644
--- a/games/atc/main.c
+++ b/games/atc/main.c
@@ -174,6 +174,7 @@ main(ac, av)
tcgetattr(fileno(stdin), &tty_start);
tty_new = tty_start;
tty_new.c_lflag &= ~(ICANON|ECHO);
+ tty_new.c_iflag |= ICRNL;
tty_new.c_cc[VMIN] = 1;
tty_new.c_cc[VTIME] = 0;
tcsetattr(fileno(stdin), TCSADRAIN, &tty_new);