From 9535d367ef36f2345273d136acaf6186007a03d7 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 20 Oct 2017 18:20:42 +0100 Subject: [PATCH] Added proc to write a whole string to the terminal. --- kernel.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel.nim b/kernel.nim index 0fbd2a5..6cd99ee 100644 --- a/kernel.nim +++ b/kernel.nim @@ -50,3 +50,7 @@ proc terminalWriteChar(writeChar: char) = inc(terminalRow) if(terminalColumn == vgaWidth): terminalColumn = 0 if(terminalRow == vgaHeight): terminalRow = 0 + +proc terminalWrite(data: string) = + for character in data: + terminalWriteChar(character)