From 77bb709df9153574e6c11e503b3966c09903183f Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 23 Apr 2006 15:17:07 +0000 Subject: [PATCH] Always echo the value. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2615 --- src/shell/shell_cmds.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 86289e9f..d84e815b 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell_cmds.cpp,v 1.65 2006-04-21 13:21:09 qbix79 Exp $ */ +/* $Id: shell_cmds.cpp,v 1.66 2006-04-23 15:17:07 qbix79 Exp $ */ #include #include @@ -826,9 +826,8 @@ void DOS_Shell::CMD_CHOICE(char * args){ do { DOS_ReadFile (STDIN,&c,&n); } while (!c || !(ptr = strchr(rem,(optS?c:toupper(c))))); - if (!optN) { //Echo typed value ? not sure actually perhaps depend on echo - DOS_WriteFile (STDOUT,&c, &n); - } + c = optS?c:toupper(c); + DOS_WriteFile (STDOUT,&c, &n); dos.return_code = ptr-rem+1; }