diff --git a/kernel.nim b/kernel.nim index f883f1b..0fbd2a5 100644 --- a/kernel.nim +++ b/kernel.nim @@ -32,8 +32,21 @@ var terminalRow, terminalColumn = 0 terminalColour = vgaEntryColour(VGA_Colour.lightGrey, VGA_Colour.black) +proc terminalWriteAtPoint(writeChar: char, colour: uint8, xPos: int, yPos: int) = + let index = terminalBufferBaseAddress + (yPos * vgaWidth + xPos) + cast[ptr uint16](index)[] = vgaEntry(' ', terminalColour) # Write directly to display memory + proc terminalInitialize() = for y in 0..