diff --git a/base/shell/cmd/cmdinput.c b/base/shell/cmd/cmdinput.c index 061b9101799..e609c5ac354 100644 --- a/base/shell/cmd/cmdinput.c +++ b/base/shell/cmd/cmdinput.c @@ -457,6 +457,13 @@ BOOL ReadCommand(LPTSTR str, INT maxlen) if (!bCtrlBreak) break; + /* + * Fully print the entered string + * so the command prompt would not overwrite it. + */ + SetCursorXY(orgx, orgy); + ConOutPrintf(_T("%s"), str); + /* * A Ctrl-C. Do not clear the command line, * but return an empty string in str.