mirror of
https://github.com/kepler155c/opus
synced 2025-01-03 20:30:28 +00:00
fix cursor positioning
This commit is contained in:
parent
440b829f62
commit
c2ee88ba0e
@ -82,12 +82,16 @@ function Terminal.window(parent, sx, sy, w, h, isVisible)
|
|||||||
|
|
||||||
function win.setCursorPos(x, y)
|
function win.setCursorPos(x, y)
|
||||||
cx, cy = x, y
|
cx, cy = x, y
|
||||||
parent.setCursorPos(x + canvas.x - 1, y + canvas.y - 1)
|
if isVisible then
|
||||||
|
parent.setCursorPos(x + canvas.x - 1, y + canvas.y - 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function win.setCursorBlink(b)
|
function win.setCursorBlink(b)
|
||||||
blink = b
|
blink = b
|
||||||
parent.setCursorBlink(b)
|
if isVisible then
|
||||||
|
parent.setCursorBlink(b)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function win.isColor()
|
function win.isColor()
|
||||||
|
Loading…
Reference in New Issue
Block a user