behaviour of con.addch changed - no longer advances cursor

This commit is contained in:
minjaesong
2021-01-29 14:19:37 +09:00
parent c73a725466
commit d963cf8294
10 changed files with 36 additions and 19 deletions

View File

@@ -88,7 +88,6 @@ class GraphicsJSR223Delegate(val vm: VM) {
it.putChar(cx, cy, c.toByte())
it.setCursorPos(cx + 1, cy)
}
}

View File

@@ -123,7 +123,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
var newx = x
var newy = y
if (newx > TEXT_COLS) {
if (newx >= TEXT_COLS) {
newx = 0
newy += 1
}

View File

@@ -39,7 +39,7 @@ class TTY(val vm: VM) : GlassTty(TEXT_ROWS, TEXT_COLS), PeriBase {
var newx = x
var newy = y
if (newx > TEXT_COLS) {
if (newx >= TEXT_COLS) {
newx = 0
newy += 1
}