mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-03-14 16:16:40 +00:00
Get VIDEX and //e 80 col to agree on cursor
This commit is contained in:
Binary file not shown.
@@ -669,19 +669,19 @@ def a2ctrl80v(code, param)#1
|
||||
handled = TRUE
|
||||
break
|
||||
is ctrlcursor
|
||||
if param == OFF
|
||||
flags = flags & ~showcurs
|
||||
^$C0B0 = $0A
|
||||
^$C0B1 = $20
|
||||
elsif param == INVERSE
|
||||
flags = flags | showcurs
|
||||
^$C0B0 = $0A
|
||||
^$C0B1 = $00
|
||||
else
|
||||
flags = flags | showcurs
|
||||
^$C0B0 = $0A
|
||||
^$C0B1 = $C0
|
||||
fin
|
||||
when param
|
||||
is OFF
|
||||
^$C0B0 = $0A
|
||||
^$C0B1 = $20
|
||||
break
|
||||
is INVERSE
|
||||
^$C0B0 = $0A
|
||||
^$C0B1 = $00
|
||||
break
|
||||
otherwise
|
||||
^$C0B0 = $0A
|
||||
^$C0B1 = $C0
|
||||
wend
|
||||
handled = TRUE
|
||||
break
|
||||
is ctrlscroll
|
||||
|
||||
@@ -1072,13 +1072,15 @@ def keyin
|
||||
|
||||
underchr = curscol >= ^(txtlinbuf=>[cursrow]) ?? ' ' :: txtlinbuf=>[cursrow]->[curscol + 1]
|
||||
curschr = flags & insmode ?? '+' :: '_'
|
||||
conio:gotoxy(cursx, cursy)
|
||||
repeat
|
||||
conio:gotoxy(cursx, cursy)
|
||||
conio:textctrl(ctrlattr, INVERSE)
|
||||
conio:putchars(1, curschr)
|
||||
conio:gotoxy(cursx, cursy)
|
||||
conio:textctrl(ctrlattr, INVERSE)
|
||||
conio:textctrl(ctrlcursor, INVERSE)
|
||||
waitkey
|
||||
conio:textctrl(ctrlattr, OFF)
|
||||
conio:textctrl(ctrlcursor, OFF)
|
||||
conio:textctrl(ctrlattr, NORMAL)
|
||||
conio:putchars(1, underchr)
|
||||
conio:gotoxy(cursx, cursy)
|
||||
waitkey
|
||||
|
||||
Reference in New Issue
Block a user