mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 13:54:30 +02:00
do not display any lone Carriage Returns
In combination with SWITCHES=/N in fdconfig.sys this commit makes it so only proper CR LF linebreaks are displayed, for instance when piping dosemu2 output to a file. SWITCHES=/F will set SkipConfigSeconds so that config.c SkipLine will display a string reading "\r%79s\r" to delete the prompt that it has displayed. This overwriting should not be needed for SkipConfigSeconds=0 however. Refer to subsequent commit.
This commit is contained in:
parent
42980dfe7d
commit
314c8b627b
@ -618,7 +618,7 @@ void DosDefinePartition(struct DriveParamS *driveParam,
|
||||
ExtPri = "Ext";
|
||||
num = extendedPartNo;
|
||||
}
|
||||
printf("\r%c: HD%d, %s[%2d]", 'A' + nUnits,
|
||||
printf("%c: HD%d, %s[%2d]", 'A' + nUnits,
|
||||
(driveParam->driveno & 0x7f) + 1, ExtPri, num);
|
||||
|
||||
printCHS(", CHS= ", &chs);
|
||||
|
@ -443,15 +443,15 @@ STATIC VOID signon()
|
||||
if (InitKernelConfig.Verbose < 0)
|
||||
{
|
||||
#ifdef CUSTOM_BRANDING
|
||||
printf("\n\r" CUSTOM_BRANDING "\n\n");
|
||||
printf("\n" CUSTOM_BRANDING "\n\n");
|
||||
#else
|
||||
printf("\n\r%S\n\n", MK_FP(FP_SEG(LoL), FP_OFF(LoL->os_release)));
|
||||
printf("\n%S\n\n", MK_FP(FP_SEG(LoL), FP_OFF(LoL->os_release)));
|
||||
#endif
|
||||
} else {
|
||||
#ifdef CUSTOM_BRANDING
|
||||
printf("\n\r" CUSTOM_BRANDING "\n\n%s", copyright);
|
||||
printf("\n" CUSTOM_BRANDING "\n\n%s", copyright);
|
||||
#else
|
||||
printf("\r%S"
|
||||
printf("\n%S"
|
||||
"Kernel compatibility %d.%d - "
|
||||
#if defined(__BORLANDC__)
|
||||
"BORLANDC"
|
||||
|
Loading…
x
Reference in New Issue
Block a user