care for echo and nanonc mode on beofre switching off
authorhackbard <hackbard>
Sun, 7 Nov 2004 11:51:09 +0000 (11:51 +0000)
committerhackbard <hackbard>
Sun, 7 Nov 2004 11:51:09 +0000 (11:51 +0000)
input/input.c

index 0060f52..285a08d 100644 (file)
@@ -40,6 +40,8 @@ int input_ios_init(t_input *input) {
   tios.c_cc[VMIN]=1; /* 1 char for non-can. mode */
 
   /* depending on used modes */
+  tios.c_lflag|=ICANON;
+  tios.c_lflag|=ECHO;
   if(!(input->mode&LINE_BUFFERED)) tios.c_lflag&=(~ICANON);
   if(!(input->mode&INPUT_ECHO)) tios.c_lflag&=(~ECHO);