From e764c1a25ca9ff1a24eed341a5f23ae6886798ca Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 21 Dec 2021 13:30:51 +0100 Subject: [PATCH] fixed monitor getSize return type --- src/cc/periphs/Monitor.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cc/periphs/Monitor.hx b/src/cc/periphs/Monitor.hx index 2ea2ee7..887a036 100644 --- a/src/cc/periphs/Monitor.hx +++ b/src/cc/periphs/Monitor.hx @@ -1,5 +1,7 @@ package cc.periphs; +import cc.Term.TerminalSize; + @:multiReturn extern class Position { var x:Int; @@ -24,7 +26,7 @@ extern class Monitor { public function setCursorPos(x:Int, y:Int):Void; // et the position of the cursor. public function getCursorBlink():Bool; // Checks if the cursor is currently blinking. public function setCursorBlink(blink:Bool):Void; // Sets whether the cursor should be visible (and blinking) at the current cursor position. - public function getSize():Int; // Get the size of the terminal. + public function getSize():TerminalSize; // Get the size of the terminal. public function clear():Void; // Clears the terminal, filling it with the current background colour. public function clearLine():Void; // Clears the line the cursor is currently on, filling it with the current background colour. public function getTextColour():Color; // Return the colour that new text will be written as.