diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c index d41539a70ecfc0a4b6a0727270ba416e91f0019c..64f23651a8ca131fc7bebf4df4300fafc02defc6 100644 --- a/src/conio/ansi_cio.c +++ b/src/conio/ansi_cio.c @@ -428,14 +428,12 @@ static void ansi_keyparse(void *par) sem_post(&goahead); break; } - if(ch==13) { - /* The \r that goes with the next \n (hopefully) */ + if(ch==10) { + /* The \n that goes with the prev \r (hopefully) */ /* Eat it and keep chuggin' */ sem_post(&goahead); break; } - if(ch==10) - ch=13; ansi_inch=ch; sem_post(&got_input); sem_wait(&used_input);