소스 검색

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.
Feoramund 1 년 전
부모
커밋
dcfda195d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/testing/runner.odin

+ 1 - 1
core/testing/runner.odin

@@ -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))