vital metre mockup

Former-commit-id: c49f7ba80cff854db6d79af1c9d50d77b0bae76d
Former-commit-id: bd62a24bfd4c9737e2f23b0bae1756df62a19acf
This commit is contained in:
Song Minjae
2017-03-03 18:42:47 +09:00
parent f5db4cb2fb
commit 0a0aea9589
6 changed files with 87 additions and 86 deletions

View File

@@ -71,7 +71,7 @@ internal class Term(globals: Globals, term: Teletype) {
class WriteString(val tty: Teletype) : LuaFunction() {
override fun call(p0: LuaValue): LuaValue {
if (tty is Terminal)
tty.writeString(p0.checkIBM437())
tty.writeString(p0.checkIBM437(), tty.cursorX, tty.cursorY)
else
tty.writeChars(p0.checkIBM437())
return LuaValue.NONE
@@ -89,7 +89,7 @@ internal class Term(globals: Globals, term: Teletype) {
class PrintString(val tty: Teletype) : LuaFunction() {
override fun call(p0: LuaValue): LuaValue {
if (tty is Terminal)
tty.printString(p0.checkIBM437())
tty.printString(p0.checkIBM437(), tty.cursorX, tty.cursorY)
else
tty.printChars(p0.checkIBM437())
return LuaValue.NONE