From f9c4ae0da4014786c48a39ffa911cd2e90da5162 Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Sun, 13 Feb 2022 12:24:54 +0500 Subject: [PATCH] Hide cursor when playing --- snake.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snake.asm b/snake.asm index 64b9756..e451163 100644 --- a/snake.asm +++ b/snake.asm @@ -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' @@ -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