From 1684c170bb2111b89ff22c46ac76b594f3e88a1f Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 24 Jun 2007 20:56:51 +0000
Subject: [PATCH] If doorway mode has been enabled, send a NULL before sending
 a control character.

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

diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c
index 97de316e1e..ba63739754 100644
--- a/src/conio/ansi_cio.c
+++ b/src/conio/ansi_cio.c
@@ -199,6 +199,8 @@ void ansi_sendch(char ch)
 			ansi_row=ansi_rows-1;
 		}
 	}
+	if(doorway_enabled && ch < ' ')
+		fwrite("",1,1,stdout);
 	fwrite(&ch,1,1,stdout);
 	/* We sent a control char... better make the next movement explicit */
 	if(ch<' ' && ch > 0)
-- 
GitLab