diff --git a/kernel.nim b/kernel.nim index 41aa066..cab13f5 100644 --- a/kernel.nim +++ b/kernel.nim @@ -34,11 +34,11 @@ var proc terminalWriteAtPoint(writeChar: char, colour: int, xPos: int, yPos: int) = let index = terminalBufferBaseAddress + (yPos * vgaWidth + (xPos * 2)) - cast[ptr int](index)[] = int(writeChar) # Write directly to display memory - cast[ptr int](index+1)[] = terminalColour + cast[ptr int8](index)[] = int8(writeChar) # Write directly to display memory + cast[ptr int8](index+1)[] = int8(terminalColour) proc terminalInitialize() = - terminalColour = vgaEntryColour(VGA_Colour.white, VGA_Colour.black) + terminalColour = vgaEntryColour(VGA_Colour.lightGreen, VGA_Colour.red) for y in 0..