Added proc to write a whole string to the terminal.

This commit is contained in:
neviyn 2017-10-20 18:20:42 +01:00
parent ba0e9982c9
commit 9535d367ef

View File

@ -50,3 +50,7 @@ proc terminalWriteChar(writeChar: char) =
inc(terminalRow) inc(terminalRow)
if(terminalColumn == vgaWidth): terminalColumn = 0 if(terminalColumn == vgaWidth): terminalColumn = 0
if(terminalRow == vgaHeight): terminalRow = 0 if(terminalRow == vgaHeight): terminalRow = 0
proc terminalWrite(data: string) =
for character in data:
terminalWriteChar(character)