Skip to content

Commit

Permalink
Get VIDEX and //e 80 col to agree on cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
highlander-robotics committed Mar 3, 2025
1 parent f56784b commit 93af940
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Binary file modified images/apple/PLASMA-2.20.po
Binary file not shown.
26 changes: 13 additions & 13 deletions src/libsrc/apple/conio.pla
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions src/toolsrc/ed.pla
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93af940

Please sign in to comment.