Send terminal control code to STDOUT instead

`STDERR` might be redirected, and this code signals to the terminal to
show the cursor again. Otherwise, the cursor will be invisible.
This commit is contained in:
Feoramund
2024-05-29 15:36:50 -04:00
parent a1c5bebac7
commit dcfda195d2

View File

@@ -667,7 +667,7 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
}
}
fmt.wprint(batch_writer, ansi.CSI + ansi.DECTCEM_SHOW)
fmt.wprint(stdout, ansi.CSI + ansi.DECTCEM_SHOW)
fmt.wprintln(stderr, bytes.buffer_to_string(&batch_buffer))