adamperkowski / highlightos

🌄 x86_64 OS (kernel) made from scratch in Rust & Assembly
https://os.adamperkowski.dev
GNU General Public License v3.0
47 stars 4 forks source link

fix cursor issues #34

Closed nnyyxxxx closed 2 weeks ago

nnyyxxxx commented 2 weeks ago

closes #9

nnyyxxxx commented 2 weeks ago

before: image

after: image

nnyyxxxx commented 2 weeks ago

ready to be merged @adamperkowski

nnyyxxxx commented 2 weeks ago

image ignore the extra space, it is not caused by this PR rather this snippet in interrupts.rs

                            // backspace
                            unsafe {
                                if BUFFER_INDEX > 0 {
                                    BUFFER_INDEX -= 1;
                                    WRITER.lock().decrement_column_position();
                                    print!(" ");
                                    WRITER.lock().decrement_column_position();
                                }
                            }