use Pos instead of Vec2<Int>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package kernel;
|
||||
|
||||
import util.Pos;
|
||||
using tink.CoreApi;
|
||||
|
||||
import kernel.ui.TermWriteable;
|
||||
@@ -38,7 +39,7 @@ class MainTerm implements TermWriteable {
|
||||
Term.scroll(y);
|
||||
}
|
||||
|
||||
public function getCursorPos():Vec2<Int> {
|
||||
public function getCursorPos():Pos {
|
||||
var rtn = Term.getCursorPos();
|
||||
return {
|
||||
x: rtn.x - 1,
|
||||
@@ -59,7 +60,7 @@ class MainTerm implements TermWriteable {
|
||||
Term.setCursorBlink(blink);
|
||||
}
|
||||
|
||||
public function getSize():Vec2<Int> {
|
||||
public function getSize():Pos {
|
||||
var rtn = Term.getSize();
|
||||
return {
|
||||
x: rtn.width,
|
||||
|
||||
Reference in New Issue
Block a user