Disable cursor

This commit is contained in:
Jeremy Soller
2022-02-02 09:59:12 -07:00
parent 2bb9a37887
commit b7a1f53141
+10
View File
@@ -155,11 +155,20 @@ pub unsafe extern "C" fn kstart(
thunk16: extern "C" fn(),
) -> ! {
{
// Make sure we are in mode 3 (80x25 text mode)
let mut data = ThunkData::new();
data.ax = 0x03;
data.with(thunk10);
}
{
// Disable cursor
let mut data = ThunkData::new();
data.ax = 0x0100;
data.cx = 0x3F00;
data.with(thunk10);
}
let mut vga = Vga::new(0xb8000 as *mut VgaTextBlock, 80, 25);
for i in 0..vga.blocks.len() {
@@ -172,6 +181,7 @@ pub unsafe extern "C" fn kstart(
writeln!(vga, "Arrow keys and space select mode, enter to continue");
loop {
// Read keypress
let mut data = ThunkData::new();
data.with(thunk16);
writeln!(