]> hackdaworld.org Git - my-code/api.git/commitdiff
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 0060f520fa6a3e7d30735378f1428c3355e005b6..285a08d905de7d0b0d00d471c34aa6ffbe217fd0 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);