mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-11 21:51:50 +09:00
behaviour of con.addch changed - no longer advances cursor
This commit is contained in:
@@ -88,7 +88,6 @@ class GraphicsJSR223Delegate(val vm: VM) {
|
||||
|
||||
|
||||
it.putChar(cx, cy, c.toByte())
|
||||
it.setCursorPos(cx + 1, cy)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user