1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-20 01:16:36 +00:00

Slightly better cursor handling for VIDEX

This commit is contained in:
David Schmenk
2025-03-03 13:57:00 -08:00
parent e2334444f1
commit 348b45a7d8
3 changed files with 5 additions and 5 deletions
Binary file not shown.
+2 -2
View File
@@ -673,8 +673,8 @@ def a2ctrl80v(code, param)#1
is OFF
flags = flags & ~showcurs
^$C0B0 = $0A
^$C0B1 = $0F
//break
^$C0B1 = $20
break
is INVERSE
flags = flags | showcurs
^$C0B0 = $0A
+3 -3
View File
@@ -45,7 +45,7 @@ word arg
word strpool, strplmapsize, strpoolmap
word txtlinbuf, cliplinbuf
word cursx, cursy, cursrow, curscol, selrow
word cursflash = 300 // default cursor flash delay
word cursflash = 400 // default cursor flash delay
//
// Predeclared functions
//
@@ -1074,11 +1074,11 @@ def keyin
curschr = flags & insmode ?? '+' :: '_'
repeat
conio:gotoxy(cursx, cursy)
conio:textctrl(ctrlattr, INVERSE)
conio:putchars(1, curschr)
conio:gotoxy(cursx, cursy)
conio:textctrl(ctrlattr, INVERSE)
waitkey
conio:textctrl(ctrlattr, NORMAL)
conio:textctrl(ctrlattr, OFF)
conio:putchars(1, underchr)
conio:gotoxy(cursx, cursy)
waitkey