From cf8b2694e69e6fbd7d1aae7522331e4ecd4352c0 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 22 Dec 2004 10:46:13 +0000
Subject: [PATCH] Eat the \ns, not the \rs

---
 src/conio/ansi_cio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c
index d41539a70e..64f23651a8 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);
-- 
GitLab