wip
This commit is contained in:
parent
ed20ad7865
commit
80a4731d72
18
femto.tal
18
femto.tal
|
@ -521,13 +521,23 @@
|
||||||
@term-erase-all ( -> )
|
@term-erase-all ( -> )
|
||||||
ansi LIT '2 emit LIT 'J emit JMP2r
|
ansi LIT '2 emit LIT 'J emit JMP2r
|
||||||
|
|
||||||
|
@offset-for-cur-row
|
||||||
|
.buffer/offset LDZ2 ( offset )
|
||||||
|
#0000 ;cur-rel-row JSR2 SUB2 STH2 ( offset [-k] )
|
||||||
|
&loop STH2r ORA ,&next JCN
|
||||||
|
POP2r JMP2r
|
||||||
|
&next LDAk #0a NEQ JMP INC2r
|
||||||
|
INC2 ,&loop JMP
|
||||||
|
|
||||||
@draw-cursor ( -> )
|
@draw-cursor ( -> )
|
||||||
;cur-w-col JSR2 .term/lmargin LDZ2 ADD2
|
;cur-w-col JSR2 .term/lmargin LDZ2 ADD2
|
||||||
DUP2 .term/cols LDZ2 LTH2 ,&ok JCN
|
.term/cols LDZ2 LTH2 ,&ok JCN
|
||||||
( TODO: handle long line here )
|
( we have a long line )
|
||||||
|
( ;offset-for-cur-row JSR2 )
|
||||||
&ok
|
&ok
|
||||||
;cur-rel-row JSR2
|
;cur-w-col JSR2 .term/lmargin LDZ2 ADD2
|
||||||
;term-move-cursor JMP2
|
;cur-rel-row JSR2
|
||||||
|
;term-move-cursor JMP2
|
||||||
|
|
||||||
@draw-statusbar ( -> )
|
@draw-statusbar ( -> )
|
||||||
#0000 .term/rows LDZ2 ;term-move-cursor JSR2
|
#0000 .term/rows LDZ2 ;term-move-cursor JSR2
|
||||||
|
|
Loading…
Reference in New Issue