2021-04-15 20:52:08 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
|
|
|
|
.TF lib/libtui
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.INB inc/macros.i
|
|
|
|
|
.INB inc/a2osx.i
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.INB inc/kernel.i
|
2021-08-13 18:34:20 +00:00
|
|
|
|
.INB inc/net.telnet.i
|
2021-04-15 20:52:08 +00:00
|
|
|
|
.INB inc/libtui.i
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DUMMY
|
|
|
|
|
.OR ZPLIB
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
ZPCtxPtr .BS 2
|
2021-04-15 20:52:08 +00:00
|
|
|
|
ZPObjPtr .BS 2
|
2021-09-07 12:32:31 +00:00
|
|
|
|
ZPLineBufPtr .BS 2
|
|
|
|
|
ZPLineBufCnt .BS 2
|
|
|
|
|
|
2021-04-15 20:52:08 +00:00
|
|
|
|
ZPPtr1 .BS 2
|
2021-09-07 12:32:31 +00:00
|
|
|
|
ZPPtr2 .BS 2
|
2021-12-02 21:28:26 +00:00
|
|
|
|
ZPPtr3 .BS 2
|
2023-03-26 17:42:38 +00:00
|
|
|
|
bTemp1 .BS 1
|
|
|
|
|
bTemp2 .BS 1
|
2021-12-02 21:28:26 +00:00
|
|
|
|
|
2021-09-07 12:32:31 +00:00
|
|
|
|
TempW .BS 2
|
|
|
|
|
TempC .BS 2
|
|
|
|
|
TempI .BS 2
|
2021-12-02 21:28:26 +00:00
|
|
|
|
|
|
|
|
|
bRepaintAll .BS 1
|
|
|
|
|
hObj .BS 1
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-04-15 20:52:08 +00:00
|
|
|
|
.ED
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* File Header (16 Bytes)
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.START cld
|
|
|
|
|
jmp (.1,x)
|
|
|
|
|
.DA #$61 6502,Level 1 (65c02)
|
|
|
|
|
.DA #1 BIN Layout Version 1
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA CS.END-CS.START
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Relocation Table
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.1 .DA LIB.LOAD
|
|
|
|
|
.DA LIB.UNLOAD
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA CTX.Init
|
|
|
|
|
.DA CTX.Close
|
|
|
|
|
*--------------------------------------
|
2022-09-04 20:12:49 +00:00
|
|
|
|
.DA SCRN.New
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA DLG.New
|
|
|
|
|
.DA LABEL.New
|
|
|
|
|
.DA TLINE.New
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.DA TBOX.New
|
|
|
|
|
.DA LBOX.New
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA CBOX.New
|
|
|
|
|
.DA BUT.New
|
|
|
|
|
.DA RADIO.New
|
2022-09-04 20:12:49 +00:00
|
|
|
|
.DA OBJ.Exec
|
2023-02-10 18:19:29 +00:00
|
|
|
|
.DA LIB.Destroy
|
2022-09-04 20:12:49 +00:00
|
|
|
|
.DA OBJ.Run
|
|
|
|
|
.DA OBJ.Draw
|
|
|
|
|
.DA OBJ.GetProp
|
2023-03-26 17:42:38 +00:00
|
|
|
|
.DA LIB.SetProp
|
2022-09-04 20:12:49 +00:00
|
|
|
|
.DA OBJ.Activate
|
|
|
|
|
.DA OBJ.Deactivate
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2023-02-10 18:19:29 +00:00
|
|
|
|
J.ObjDestroy .DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
.DA OBJ.Destroy
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
J.ObjRun .DA CONT.Run
|
|
|
|
|
.DA CONT.Run
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA LABEL.Run
|
|
|
|
|
.DA TLINE.Run
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.DA TBOX.Run
|
|
|
|
|
.DA LBOX.Run
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA CBOX.Run
|
|
|
|
|
.DA BUT.Run
|
|
|
|
|
.DA RADIO.Run
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2023-02-10 18:19:29 +00:00
|
|
|
|
J.ObjDraw .DA CONT.Draw
|
|
|
|
|
.DA CONT.Draw
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA LABEL.Draw
|
|
|
|
|
.DA TLINE.Draw
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.DA TBOX.Draw
|
|
|
|
|
.DA LBOX.Draw
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA CBOX.Draw
|
|
|
|
|
.DA BUT.Draw
|
|
|
|
|
.DA RADIO.Draw
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2023-02-10 18:19:29 +00:00
|
|
|
|
J.ObjActivate .DA OBJ.Activate
|
|
|
|
|
.DA OBJ.Activate
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA LABEL.Activate
|
|
|
|
|
.DA TLINE.Activate
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.DA TBOX.Activate
|
|
|
|
|
.DA LBOX.Activate
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA CBOX.Activate
|
|
|
|
|
.DA BUT.Activate
|
|
|
|
|
.DA RADIO.Activate
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2023-02-10 18:19:29 +00:00
|
|
|
|
J.ObjDeactivate .DA OBJ.Deactivate
|
|
|
|
|
.DA OBJ.Deactivate
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA LABEL.Deactivate
|
|
|
|
|
.DA TLINE.Deactivate
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.DA TBOX.Deactivate
|
|
|
|
|
.DA LBOX.Deactivate
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA CBOX.Deactivate
|
|
|
|
|
.DA BUT.Deactivate
|
|
|
|
|
.DA RADIO.Deactivate
|
|
|
|
|
*--------------------------------------
|
2023-03-26 17:42:38 +00:00
|
|
|
|
J.ObjSetProp .DA OBJ.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
.DA TBOX.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
.DA OBJ.SetProp
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
J.TBOX.RUN.RO .DA TBOX.RUN.Ignore
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-A
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-B
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-C
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-D
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-E
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-F
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-G
|
|
|
|
|
.DA TBOX.RUN.PrevLink BS
|
|
|
|
|
.DA TBOX.RUN.Ignore TAB
|
|
|
|
|
.DA TBOX.RUN.ScrollUp LF
|
|
|
|
|
.DA TBOX.RUN.ScrollDown VT
|
|
|
|
|
.DA TBOX.RUN.EOL Ctrl-L
|
|
|
|
|
.DA TBOX.RUN.GetLink CR
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-N
|
|
|
|
|
.DA TBOX.RUN.PGUP Ctrl-O
|
|
|
|
|
.DA TBOX.RUN.PGDN Ctrl-P
|
|
|
|
|
.DA TBOX.RUN.QUIT Ctrl-Q
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-R
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-S
|
|
|
|
|
.DA TBOX.RUN.Home Ctrl-T
|
|
|
|
|
.DA TBOX.RUN.NextLink FS
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-V
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-W
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-X
|
|
|
|
|
.DA TBOX.RUN.EOF Ctrl-Y
|
|
|
|
|
.DA TBOX.RUN.Ignore Ctrl-Z
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
J.TBOX.RUN.RW .DA TBOX.RUN.Ignore
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore
|
|
|
|
|
.DA TBOX.RUN.SelBegin Ctrl-B
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore ** Copy
|
|
|
|
|
.DA TBOX.RUN.Ignore ** Delete Selection
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.SelEnd Ctrl-E
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore ** Find...
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.SOL Ctrl-G
|
|
|
|
|
.DA TBOX.RUN.BS
|
|
|
|
|
.DA TBOX.RUN.Ignore TAB
|
|
|
|
|
.DA TBOX.RUN.LF
|
|
|
|
|
.DA TBOX.RUN.VT
|
|
|
|
|
.DA TBOX.RUN.EOL Ctrl-L
|
|
|
|
|
.DA TBOX.RUN.CR
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore ** Next...
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.PGUP Ctrl-O
|
|
|
|
|
.DA TBOX.RUN.PGDN Ctrl-P
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.QUIT Ctrl-Q
|
|
|
|
|
.DA TBOX.RUN.Ignore ** Replace
|
|
|
|
|
.DA TBOX.RUN.Ignore ** save
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.Home Ctrl-T
|
|
|
|
|
.DA TBOX.RUN.FS
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore ** Paste
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.EraseCL Ctrl-W
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore ** Cut
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA TBOX.RUN.EOF Ctrl-Y
|
2023-01-31 06:55:01 +00:00
|
|
|
|
.DA TBOX.RUN.Ignore ** delete under cusror
|
2021-04-29 11:56:34 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
L.SEQ.INIT .DA SEQ.INIT
|
2021-09-07 12:32:31 +00:00
|
|
|
|
L.SEQ.GOTOXY .DA SEQ.GOTOXY
|
|
|
|
|
L.SEQ.COLOR .DA SEQ.COLOR
|
|
|
|
|
L.SEQ.CLOSE .DA SEQ.CLOSE
|
2021-08-13 18:34:20 +00:00
|
|
|
|
L.FMT.ESCCSI.R .DA FMT.ESCCSI.R
|
2021-04-15 20:52:08 +00:00
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
2021-08-13 18:34:20 +00:00
|
|
|
|
LIB.LOAD lda LibCnt
|
|
|
|
|
bne .8
|
|
|
|
|
|
2021-09-07 12:32:31 +00:00
|
|
|
|
>LDYAI 512
|
2021-08-13 18:34:20 +00:00
|
|
|
|
>SYSCALL2 GetMem
|
|
|
|
|
bcs .9
|
|
|
|
|
|
2021-09-07 12:32:31 +00:00
|
|
|
|
>STYA LineBuf
|
2021-08-13 18:34:20 +00:00
|
|
|
|
stx hLineBuf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.8 inc LibCnt
|
|
|
|
|
clc
|
|
|
|
|
.9 rts
|
2021-04-15 20:52:08 +00:00
|
|
|
|
*--------------------------------------
|
2021-08-13 18:34:20 +00:00
|
|
|
|
LIB.UNLOAD dec LibCnt
|
|
|
|
|
bne .8
|
|
|
|
|
|
|
|
|
|
lda hLineBuf
|
|
|
|
|
>SYSCALL2 FreeMem
|
|
|
|
|
|
|
|
|
|
.8 clc
|
2021-04-15 20:52:08 +00:00
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2023-03-26 17:42:38 +00:00
|
|
|
|
LIB.SetProp ldy #3 hObj
|
|
|
|
|
lda (pStack),y
|
|
|
|
|
|
|
|
|
|
jsr LIB.GetOBJ
|
|
|
|
|
|
|
|
|
|
ldy #2
|
|
|
|
|
lda (pStack),y
|
|
|
|
|
tay prop
|
|
|
|
|
|
|
|
|
|
>PULLA Value
|
|
|
|
|
sta (ZPObjPtr),y
|
|
|
|
|
iny
|
|
|
|
|
>PULLA
|
|
|
|
|
sta (ZPObjPtr),y
|
|
|
|
|
|
|
|
|
|
dey prop
|
|
|
|
|
|
|
|
|
|
inc pStack prop
|
|
|
|
|
inc pStack hObj
|
|
|
|
|
|
|
|
|
|
lda (ZPObjPtr) S.OBJ.T
|
|
|
|
|
tax
|
|
|
|
|
jmp (J.ObjSetProp,x)
|
|
|
|
|
*--------------------------------------
|
2023-02-10 18:19:29 +00:00
|
|
|
|
LIB.Destroy ldx ZPObjPtr
|
|
|
|
|
phx
|
|
|
|
|
ldx ZPObjPtr+1
|
|
|
|
|
phx
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
pha
|
|
|
|
|
jsr LIB.GetOBJ
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
ldy #S.OBJ.S
|
|
|
|
|
lda (ZPObjPtr),y
|
|
|
|
|
and #S.OBJ.S.bHasChilds
|
|
|
|
|
beq .3
|
|
|
|
|
|
|
|
|
|
ldy #S.OBJ.Childs
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
.1 lda (ZPObjPtr),y
|
|
|
|
|
beq .2
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
phy
|
|
|
|
|
pha
|
|
|
|
|
jsr OBJ.Destroy
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
pla
|
2023-04-22 18:58:37 +00:00
|
|
|
|
>SYSCALL2 FreeMem
|
2023-02-10 18:19:29 +00:00
|
|
|
|
ply
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
.2 iny
|
|
|
|
|
cpy #S.OBJ
|
|
|
|
|
bcc .1
|
|
|
|
|
|
|
|
|
|
pla
|
|
|
|
|
pha
|
|
|
|
|
jsr LIB.GetOBJ
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
.3 jsr .7
|
|
|
|
|
|
|
|
|
|
pla
|
2023-04-22 18:58:37 +00:00
|
|
|
|
>SYSCALL2 FreeMem
|
2023-02-10 18:19:29 +00:00
|
|
|
|
|
|
|
|
|
plx
|
|
|
|
|
stx ZPObjPtr+1
|
|
|
|
|
plx
|
|
|
|
|
stx ZPObjPtr
|
|
|
|
|
|
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.7 lda (ZPObjPtr) S.OBJ.T
|
|
|
|
|
tax
|
|
|
|
|
jmp (J.ObjDestroy,x)
|
|
|
|
|
*--------------------------------------
|
2023-03-26 17:42:38 +00:00
|
|
|
|
LIB.GetCTX >LDYA ZPObjPtr
|
2021-12-02 21:28:26 +00:00
|
|
|
|
>STYA ZPCtxPtr
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
|
|
|
|
.1 lda (ZPCtxPtr)
|
2022-09-04 20:12:49 +00:00
|
|
|
|
* cmp #S.OBJ.T.SCRN
|
|
|
|
|
beq .8
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
|
|
|
|
jsr .8
|
2022-09-04 20:12:49 +00:00
|
|
|
|
bra .1
|
2023-03-26 17:42:38 +00:00
|
|
|
|
|
|
|
|
|
.8 ldy #S.OBJ.hParent
|
|
|
|
|
lda (ZPCtxPtr),y
|
2023-05-01 07:35:39 +00:00
|
|
|
|
beq *
|
2023-03-26 17:42:38 +00:00
|
|
|
|
>SYSCALL2 GetMemPtr
|
2023-05-01 07:35:39 +00:00
|
|
|
|
bcs *
|
2023-03-26 17:42:38 +00:00
|
|
|
|
>STYA ZPCtxPtr
|
|
|
|
|
|
|
|
|
|
rts
|
2021-04-15 20:52:08 +00:00
|
|
|
|
*--------------------------------------
|
2021-12-02 21:28:26 +00:00
|
|
|
|
LIB.GetOBJ >SYSCALL2 GetMemPtr
|
2021-09-07 12:32:31 +00:00
|
|
|
|
>STYA ZPObjPtr
|
2021-04-15 20:52:08 +00:00
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2023-03-26 17:42:38 +00:00
|
|
|
|
.INB usr/src/lib/libtui.s.io
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.INB usr/src/lib/libtui.s.lb
|
|
|
|
|
.INB usr/src/lib/libtui.s.ctx
|
|
|
|
|
.INB usr/src/lib/libtui.s.cont
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.INB usr/src/lib/libtui.s.obj
|
|
|
|
|
.INB usr/src/lib/libtui.s.scrn
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.INB usr/src/lib/libtui.s.dlg
|
|
|
|
|
.INB usr/src/lib/libtui.s.label
|
|
|
|
|
.INB usr/src/lib/libtui.s.tline
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.INB usr/src/lib/libtui.s.tbox
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.INB usr/src/lib/libtui.s.lbox
|
|
|
|
|
.INB usr/src/lib/libtui.s.cbox
|
|
|
|
|
.INB usr/src/lib/libtui.s.but
|
|
|
|
|
.INB usr/src/lib/libtui.s.radio
|
2021-04-15 20:52:08 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.END
|
|
|
|
|
*--------------------------------------
|
2021-08-13 18:34:20 +00:00
|
|
|
|
LibCnt .BS 1
|
|
|
|
|
hLineBuf .BS 1
|
2021-09-07 12:32:31 +00:00
|
|
|
|
LineBuf .BS 2
|
2021-08-13 18:34:20 +00:00
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
ESC.In .AS "DABC"
|
2023-04-22 18:58:37 +00:00
|
|
|
|
ESC.Out .DA #C.BS,#C.VT,#C.LF,#21
|
2021-08-13 18:34:20 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
FMT.ESCCSI.R .AZ "%d;%d"
|
|
|
|
|
*--------------------------------------
|
2021-12-02 21:28:26 +00:00
|
|
|
|
OBJ.SIZES .DA S.SCRN,S.DLG,S.LABEL,S.TLINE,S.TBOX,S.LBOX,S.CBOX,S.BUT,S.RADIO
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
OBJ.COLORS .DA #93,#44 SCRN
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA #93,#46 DLG
|
|
|
|
|
.DA #93,#0 LABEL
|
|
|
|
|
.DA #93,#104 TLINE
|
2021-09-07 12:32:31 +00:00
|
|
|
|
.DA #93,#104 TBOX
|
|
|
|
|
.DA #93,#104 LBOX
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.DA #93,#0 CBOX
|
|
|
|
|
.DA #92,#100 BUT
|
|
|
|
|
.DA #93,#0 RADIO
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2023-03-26 17:42:38 +00:00
|
|
|
|
SEQ.INIT .CS "\ec" reset
|
|
|
|
|
.CS "\e[999;999H" Set Cursor Pos to 999,999
|
2022-10-07 19:21:37 +00:00
|
|
|
|
.CS "\e[6n" then query Cursor Pos
|
|
|
|
|
.CS "\e(B" font select
|
|
|
|
|
.CS "\e)0" font select
|
|
|
|
|
.CS "\e[?7l" Disable Line Wrap
|
|
|
|
|
.CZ "\e[?25l" Hide Cursor
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
SEQ.GOTOXY .CZ "\e[%d;%dH"
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
SEQ.COLOR .CZ "\e[%d;%dm"
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
SEQS .EQ *
|
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
SEQ.CURON .CZ "\e[?25h" Show Cursor
|
|
|
|
|
SEQ.CUROFF .CZ "\e[?25l" Hide Cursor
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
SEQ.BAR .CS "\e[1m" BOLD
|
|
|
|
|
.CS "\e[7m" INVERSE
|
|
|
|
|
.CZ "\e[37;40m"
|
|
|
|
|
SEQ.BAREND .CZ "\e[0m"
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
SEQ.BORDERTL .DA #C.SO,#'l'
|
|
|
|
|
.DA #0
|
|
|
|
|
SEQ.BORDERTR .DA #C.SO,#'k',#C.SI
|
|
|
|
|
.DA #0
|
|
|
|
|
SEQ.BORDERBL .DA #C.SO,#'m'
|
|
|
|
|
.DA #0
|
|
|
|
|
SEQ.BORDERBR .DA #C.SO,#'j',#C.SI
|
|
|
|
|
.DA #0
|
|
|
|
|
*SEQ.BORDERH .DA #C.SO,#'q',#C.SI
|
|
|
|
|
* .DA #0
|
|
|
|
|
SEQ.BORDERV .DA #C.SO,#'x',#C.SI
|
|
|
|
|
.DA #0
|
2022-10-07 19:21:37 +00:00
|
|
|
|
SEQ.INVERSE .CZ "\e[7m"
|
|
|
|
|
SEQ.NORMAL .CZ "\e[0m"
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
*SEQ.SCROLLCURUP .CS "\e[?7l\e[%d;%dr"
|
|
|
|
|
*SEQ.SCROLLUP .CZ "\eD"
|
|
|
|
|
*SEQ.SCROLLCURDN .CS "\e[?7l\e[%d;%dr"
|
|
|
|
|
*SEQ.SCROLLDN .CZ "\eM"
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2022-10-07 19:21:37 +00:00
|
|
|
|
SEQ.CLOSE .CZ "\ec\e[?7h" Enable Line Wrap
|
2021-04-15 20:52:08 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE usr/src/lib/libtui.s
|
|
|
|
|
ASM
|