Skip to content

Commit

Permalink
Hide cursor when playing
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaIvanovV committed Feb 13, 2022
1 parent 6b609ce commit f9c4ae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snake.asm
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ section .data
; ANSI escape seqences
DEF_ESC_SEQ cur_reset_seq, 'A', SCREEN_Y_STR
DEF_ESC_SEQ cur_home_seq, 'H', '0', ';', '0'
DEF_ESC_SEQ cur_hide_seq, 'l', '?', '25'
DEF_ESC_SEQ cur_show_seq, 'h', '?', '25'
DEF_ESC_SEQ clear_seq, 'J', '0'
DEF_ESC_SEQ color_reset_seq, 'm', '0'
DEF_COLOR_SEQ bright_red, '91', '101'
Expand Down Expand Up @@ -514,10 +516,12 @@ init:
PRINT_BUF_APPEND cur_home_seq
PRINT_BUF_APPEND clear_seq
PRINT_BUF_APPEND text_controls
PRINT_BUF_APPEND cur_hide_seq

ret

shutdown:
PRINT_STR_DATA cur_show_seq
call set_canon
ret

Expand Down

0 comments on commit f9c4ae0

Please sign in to comment.