From fcb74411a9807ebb3922d895e3b199ee55281a91 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 11 Dec 2002 19:50:40 +0000 Subject: [PATCH] readline considers 0x1b (esc) as a valid char now Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@564 --- src/shell/shell_batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/shell_batch.cpp b/src/shell/shell_batch.cpp index fdec91ba..769dccea 100644 --- a/src/shell/shell_batch.cpp +++ b/src/shell/shell_batch.cpp @@ -50,7 +50,7 @@ emptyline: n=1; DOS_ReadFile(file_handle,&c,&n); if (n>0) { - if (c>31) + if (c>31 || c==0x1b) *cmd_write++=c; } } while (c!='\n' && n);