diff io.c @ 22:10e33568b38a

clean up
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 09 Jul 2018 14:07:30 +0900
parents 49fac9474858
children 5217f23f2f9e
line wrap: on
line diff
--- a/io.c	Mon Jul 09 11:25:28 2018 +0900
+++ b/io.c	Mon Jul 09 14:07:30 2018 +0900
@@ -371,6 +371,7 @@
 }
 
 void restore_term(void) {
+        termsetting.c_iflag = termsetting.c_iflag | INLCR | ICRNL;
         tcsetattr(0, TCSAFLUSH, &termsetting);
         fcntl(0, F_SETFL, tflags);
         signal(SIGALRM, SIG_IGN);