term: draw cursor during initialization

This commit is contained in:
Zihao Yu 2024-01-11 00:53:19 +08:00
parent a73c474d37
commit e770a22bed
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Term::Term(SDL_Renderer *r, int x, int y, int w, int h):
is_cursor_visible = true;
is_focus = false;
clear_screen();
draw_cursor();
dirty_line = new bool[h_in_char];
dirty_char = new bool[w_in_char * h_in_char];
init_dirty(false);