1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-08 07:31:32 +00:00

Make TAB key (or CTRL-I) tab

This commit is contained in:
David Schmenk 2018-01-05 07:28:24 -08:00
parent e335b22445
commit bae48854f4

View File

@ -96,23 +96,6 @@ predef cmdmode#0
asm equates asm equates
!SOURCE "vmsrc/plvmzp.inc" !SOURCE "vmsrc/plvmzp.inc"
end end
asm clrhibit(strptr)#0
LDA ESTKL,X
STA SRCL
LDA ESTKH,X
STA SRCH
INX
LDY #$00
LDA (SRC),Y
BEQ +
TAY
CLHILP LDA (SRC),Y
AND #$7F
STA (SRC),Y
DEY
BNE CLHILP
+ RTS
end
asm sethibit(strptr)#0 asm sethibit(strptr)#0
LDA ESTKL,X LDA ESTKL,X
STA SRCL STA SRCL
@ -640,6 +623,9 @@ def keyin2
fin fin
return key return key
end end
def tabkeyin
return cursx < MAXLNLEN and cursx & $01 ?? keyspace :: 0
end
// //
// Printer routines // Printer routines
// //
@ -889,6 +875,11 @@ def editmode#0
is keyctrlt is keyctrlt
joinline; break joinline; break
is keyctrli is keyctrli
keyin = @tabkeyin
editline(keyspace)
keyin = !(MACHID & $80) ?? @keyin2 :: @keyin2e
break
is keyctrlb
if flags & insmode if flags & insmode
flags = flags & ~insmode flags = flags & ~insmode
curschr = ' ' curschr = ' '
@ -929,7 +920,7 @@ def prfiles(optpath)
if ^optpath if ^optpath
strcpy(@path, optpath) strcpy(@path, optpath)
else else
getpfx(@path) fileio:getpfx(@path)
puts(@path) puts(@path)
putln putln
fin fin
@ -943,9 +934,9 @@ def prfiles(optpath)
if fileio:read(refnum, databuff, 512) == 512 if fileio:read(refnum, databuff, 512) == 512
entry = databuff + 4 entry = databuff + 4
if firstblk if firstblk
entrylen = databuff.$23 entrylen = databuff->$23
entriesblk = databuff.$24 entriesblk = databuff->$24
filecnt = databuff:$25 filecnt = databuff=>$25
entry = entry + entrylen entry = entry + entrylen
fin fin
for i = firstblk to entriesblk for i = firstblk to entriesblk
@ -1042,7 +1033,7 @@ def cmdmode#0
is 'C' is 'C'
prfiles(cmdptr); break prfiles(cmdptr); break
is 'P' is 'P'
setpfx(cmdptr); break fileio:setpfx(cmdptr); break
is 'H' is 'H'
if ^cmdptr if ^cmdptr
slot = cmdptr.1 - '0' slot = cmdptr.1 - '0'