Skip to content

Commit 757b40d

Browse files
committed
Decided to use the 8 bytes to make the cursor disappear at return.
1 parent 05dc90d commit 757b40d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

VTUI0.8.BIN

8 Bytes
Binary file not shown.

acme-ex02.asm

-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ main:
4949
+VTUI_INPUT_STR ; Get a string from user
5050
sty StrLen ; Store actual length of string
5151

52-
lda #' '
53-
ldx #(BLUE<<4)|WHITE
54-
+VTUI_PLOT_CHAR ; Remove cursor after input
55-
5652
lda #20 ; Goto 20, 20
5753
ldy #20
5854
+VTUI_GOTOXY

vtuilib-generic.asm

+4-1
Original file line numberDiff line numberDiff line change
@@ -852,4 +852,7 @@ vtui_input_str:
852852
iny ; Inc .Y to show a char has been added
853853
bra @inputloop
854854

855-
@end: rts
855+
@end: lda #' '
856+
sta VERA_DATA0
857+
stx VERA_DATA0
858+
rts

0 commit comments

Comments
 (0)