Fix TerminalObject

This commit is contained in:
apemanzilla
2018-03-29 17:24:52 -04:00
parent 808c1972a9
commit f745e01464
3 changed files with 5 additions and 4 deletions

View File

@@ -28,11 +28,11 @@ extern class OS {
@:native("pullEvent") private static function _pullEvent(?type: String): Dynamic;
@:native("pullEventRaw") private static function _pullEventRaw(?type: String): Dynamic;
public static inline function pullEvent(?type: String): ArrayAccess<Dynamic> {
public static inline function pullEvent(?type: String): Table<Int, Dynamic> {
return cast TableTools.pack(_pullEvent(type));
}
public static inline function pullEventRaw(?type: String): ArrayAccess<Dynamic> {
public static inline function pullEventRaw(?type: String): Table<Int, Dynamic> {
return cast TableTools.pack(_pullEventRaw(type));
}
}

View File

@@ -14,6 +14,7 @@ extern class TerminalSize {
public var height: Int;
}
@:luaDotMethod
extern class TerminalObject {
public function write(text: String): Void;
public function blit(text: String, colors: String, background: String): Void;