work on delete key support
This commit is contained in:
1 parent
e15c7a1979
commit
37dbe00ec2
2 files changed
+11
-17
No files matched your search
@@ -3,8 +3,6 @@
|
|||||||
// Cursor keys handling within CHROUT
|
// Cursor keys handling within CHROUT
|
||||||
//
|
//
|
||||||
|
|
||||||
// YYY bug: after line growth cursor LEFT/RIGHT jumps to previous line!!!
|
|
||||||
|
|
||||||
|
|
||||||
chrout_screen_CRSR_UP:
|
chrout_screen_CRSR_UP:
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ chrout_screen_DEL:
|
|||||||
beq !+
|
beq !+
|
||||||
jmp chrout_screen_quote
|
jmp chrout_screen_quote
|
||||||
!:
|
!:
|
||||||
// ldx PNTR
|
ldy PNTR
|
||||||
jsr screen_get_clipped_PNTR
|
|
||||||
bne chrout_screen_del_column_non_0
|
bne chrout_screen_del_column_non_0
|
||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
@@ -40,15 +39,14 @@ chrout_screen_del_column_0:
|
|||||||
|
|
||||||
chrout_screen_del_column_non_0:
|
chrout_screen_del_column_non_0:
|
||||||
|
|
||||||
/* YYY disabled for rework
|
// We need to scroll back the rest of the logical line
|
||||||
|
// YYY this part scrolls back too much!
|
||||||
|
|
||||||
// Copy rest of logical line back
|
|
||||||
jsr screen_get_logical_line_end_ptr
|
jsr screen_get_logical_line_end_ptr
|
||||||
ldy PNTR
|
|
||||||
cpy LNMX
|
|
||||||
beq !++
|
|
||||||
dey
|
|
||||||
!:
|
!:
|
||||||
|
cpy PNTR
|
||||||
|
beq !+
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda (PNT),y
|
lda (PNT),y
|
||||||
dey
|
dey
|
||||||
@@ -58,21 +56,19 @@ chrout_screen_del_column_non_0:
|
|||||||
dey
|
dey
|
||||||
sta (USER),y
|
sta (USER),y
|
||||||
iny
|
iny
|
||||||
cpy LNMX
|
|
||||||
bne !-
|
|
||||||
|
|
||||||
// Clear char at end of line
|
bne !- // branch always
|
||||||
jsr screen_get_current_line_logical_length
|
!:
|
||||||
|
// Clear char at end of line (just the character - not color!)
|
||||||
|
|
||||||
|
jsr screen_get_logical_line_end_ptr
|
||||||
tay
|
tay
|
||||||
lda #$20
|
lda #$20
|
||||||
sta (PNT),y
|
sta (PNT),y
|
||||||
!:
|
|
||||||
dec PNTR
|
dec PNTR
|
||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
chrout_screen_del_done:
|
chrout_screen_del_done:
|
||||||
|
|
||||||
jmp chrout_screen_done
|
jmp chrout_screen_done
|
||||||
Reference in new issue
Block a user