Compare commits
2 Commits
f252f6d587
...
e764c1a25c
| Author | SHA1 | Date | |
|---|---|---|---|
| e764c1a25c | |||
| 29c42f5a0b |
@@ -24,6 +24,8 @@ extern class OS {
|
|||||||
public static function cancelAlarm(id:Int):Void;
|
public static function cancelAlarm(id:Int):Void;
|
||||||
public static function shutdown():Void;
|
public static function shutdown():Void;
|
||||||
public static function reboot():Void;
|
public static function reboot():Void;
|
||||||
|
public static function date(?format:String,?time:Int):Dynamic;
|
||||||
|
public static function epoch(?args:String):Int;
|
||||||
|
|
||||||
@:native("pullEvent") private static function _pullEvent(?type:String):Dynamic;
|
@:native("pullEvent") private static function _pullEvent(?type:String):Dynamic;
|
||||||
@:native("pullEventRaw") private static function _pullEventRaw(?type:String):Dynamic;
|
@:native("pullEventRaw") private static function _pullEventRaw(?type:String):Dynamic;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package cc.periphs;
|
package cc.periphs;
|
||||||
|
|
||||||
|
import cc.Term.TerminalSize;
|
||||||
|
|
||||||
@:multiReturn
|
@:multiReturn
|
||||||
extern class Position {
|
extern class Position {
|
||||||
var x:Int;
|
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 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 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 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 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 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.
|
public function getTextColour():Color; // Return the colour that new text will be written as.
|
||||||
|
|||||||
Reference in New Issue
Block a user