File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 44inline char * OS_NAME = "SectorOS" ;
55
66inline char * KERNEL_NAME = "SectorOS" ;
7- inline char * KERNEL_VERSION = "V2.2.2 " ;
8- inline char * KERNEL_BUILD = "Build: 2022-01-08 " ;
7+ inline char * KERNEL_VERSION = "V2.3.1 " ;
8+ inline char * KERNEL_BUILD = "Build: 2022-01-09 " ;
99inline char * KERNEL_ARCH = "x86" ;
1010
1111inline char * SHELL_NAME = "SOSH" ;
Original file line number Diff line number Diff line change @@ -104,4 +104,4 @@ stopVBOX:
104104.PHONY : clean
105105clean :
106106 @printf " \e[1;31mCleaning the object files...\n\e[0m"
107- @rm -f $(objects ) SectorOS_Kernel.bin SectorOS.iso
107+ @rm -f $(objects ) CPU/shutdown.o SectorOS_Kernel.bin SectorOS.iso
Original file line number Diff line number Diff line change @@ -700,9 +700,12 @@ void printf(char *str)
700700 if (y >= 25 )
701701 {
702702 // ColourPrint(1);
703+ char *foo = " " ;
703704 isused = true ;
705+ for (int i = 0 ; i != 80 ; i++)
706+ foo[i] = VideoMemory[80 * 24 + i];
704707 for (y = 0 ; y < 25 ; y++)
705- for (x = 0 ; x < 80 ; x++)
708+ for (x = 0 ; x < 79 ; x++)
706709 VideoMemory[80 * y + x] = (VideoMemory[80 * y + x] & 0xFF00 ) | ' ' ;
707710 x = 0 ;
708711 y = 0 ;
@@ -717,7 +720,11 @@ void printf(char *str)
717720 printf (INTTOCHARPOINT (rtclock.month ));
718721 printf (" /" );
719722 printf (INTTOCHARPOINT (rtclock.year ));
720- printf (" Type: Shell " );
723+ printf (" Type: Shell\n " );
724+ for (int i = 0 ; i != 80 ; i++)
725+ VideoMemory[80 * 1 + i] = (VideoMemory[80 * 1 + i] & 0xFF00 ) | foo[i];
726+ printf (" \n " );
727+ play_sound (440 );
721728 }
722729 }
723730
You can’t perform that action at this time.
0 commit comments