File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,12 @@ extern void term_write(const char *string, size_t length) {
7474 terminal_request .response -> write (main_terminal , string , length );
7575}
7676
77+ /*
7778void flushFrmbuffer(void) {
7879 asm volatile("" ::: "memory");
79- }
80+ }*/ //very very very toxic function
8081
81- void clear_Txt (void ) {
82+ void clear_TxT (void ) {
8283 char * space_line = " " ; // 80 spaces
8384 for (size_t raw = 0 ; raw < cols ; raw ++ ) {
8485 term_write (space_line , rows );
@@ -88,7 +89,7 @@ void clear_Txt(void) {
8889
8990extern void term_clear (void ) {
9091 fb_clear (0x000000 );
91- flushFrmbuffer (); // pllllspplg troung just sone useless txt :d
92+ // pllllspplg troung just sone useless txt :d
9293 clear_TxT ();
9394
9495}
@@ -251,18 +252,10 @@ void _start(void) {
251252
252253 enableAPIC ();
253254 enableAPICTimer (10 );
255+ term_clear ();
254256 enableKeyboard (ioapics [0 ]-> address );
255257 initTasking ();
256- // Fetch the first framebuffer.
257- // Fetch the first framebuffer.
258-
259-
260- // Note: we assume the framebuffer model is RGB with 32-bit pixels.
261-
262-
263- // Clear the screen by filling it with black.
264258
265- // At this point, the entire screen is black, and all text or content is removed.
266259
267260
268261 doIt ();
You can’t perform that action at this time.
0 commit comments