File tree 1 file changed +5
-12
lines changed
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) {
74
74
terminal_request .response -> write (main_terminal , string , length );
75
75
}
76
76
77
+ /*
77
78
void flushFrmbuffer(void) {
78
79
asm volatile("" ::: "memory");
79
- }
80
+ }*/ //very very very toxic function
80
81
81
- void clear_Txt (void ) {
82
+ void clear_TxT (void ) {
82
83
char * space_line = " " ; // 80 spaces
83
84
for (size_t raw = 0 ; raw < cols ; raw ++ ) {
84
85
term_write (space_line , rows );
@@ -88,7 +89,7 @@ void clear_Txt(void) {
88
89
89
90
extern void term_clear (void ) {
90
91
fb_clear (0x000000 );
91
- flushFrmbuffer (); // pllllspplg troung just sone useless txt :d
92
+ // pllllspplg troung just sone useless txt :d
92
93
clear_TxT ();
93
94
94
95
}
@@ -251,18 +252,10 @@ void _start(void) {
251
252
252
253
enableAPIC ();
253
254
enableAPICTimer (10 );
255
+ term_clear ();
254
256
enableKeyboard (ioapics [0 ]-> address );
255
257
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.
264
258
265
- // At this point, the entire screen is black, and all text or content is removed.
266
259
267
260
268
261
doIt ();
You can’t perform that action at this time.
0 commit comments