Browse Source

terminal: redraw cursor on \r

K. Lange 3 years ago
parent
commit
07a9f5bec8
2 changed files with 2 additions and 0 deletions
  1. 1 0
      apps/terminal-vga.c
  2. 1 0
      apps/terminal.c

+ 1 - 0
apps/terminal-vga.c

@@ -697,6 +697,7 @@ void term_write(char c) {
 	if (!decode(&unicode_state, &codepoint, (uint8_t)c)) {
 		if (c == '\r') {
 			csr_x = 0;
+			draw_cursor();
 			return;
 		}
 		if (csr_x == term_width) {

+ 1 - 0
apps/terminal.c

@@ -1379,6 +1379,7 @@ static void term_write(char c) {
 		codepoint = 0;
 		if (c == '\r') {
 			csr_x = 0;
+			draw_cursor();
 			return;
 		}
 		if (csr_x < 0) csr_x = 0;