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:
parent
c20579a835
commit
b0cdfa5161
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue