1
0
Fork 0

Do not print newline after every command

This newline is already ommitted from batch files and noecho commands,
this change makes the behaviour consistent in interactive mode.

Additional newline is a behaviour inherited from MS-DOS, and even still
visible in Windows cmd.exe, but all modern DOS implementations,
PowerShell, unix terminals, etc - they all prefer consistent behaviour
over addtional newline. Also, there's no point in wasting 4% of screen
estate just to show empty line.

This fixes CLS command, which is now able to properly clean the screen
and place prompt in the first line.
This commit is contained in:
Patryk Obara 2019-12-12 01:59:43 +01:00 committed by Patryk Obara
parent c20579a835
commit b0cdfa5161

View file

@ -358,7 +358,6 @@ void DOS_Shell::Run(void) {
if (echo) ShowPrompt();
InputCommand(input_line);
ParseLine(input_line);
if (echo && !bf) WriteOut_NoParsing("\n");
}
} while (!exit);
}