mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add animation detection support to test runner
This commit is contained in:
@@ -63,9 +63,11 @@ stop_test_callback :: proc "c" (sig: libc.int) {
|
||||
// NOTE(Feoramund): Using these write calls in a signal handler is
|
||||
// undefined behavior in C99 but possibly tolerated in POSIX 2008.
|
||||
// Either way, we may as well try to salvage what we can.
|
||||
show_cursor := ansi.CSI + ansi.DECTCEM_SHOW
|
||||
libc.fwrite(raw_data(show_cursor), size_of(byte), len(show_cursor), libc.stdout)
|
||||
libc.fflush(libc.stdout)
|
||||
if !global_ansi_disabled {
|
||||
show_cursor := ansi.CSI + ansi.DECTCEM_SHOW
|
||||
libc.fwrite(raw_data(show_cursor), size_of(byte), len(show_cursor), libc.stdout)
|
||||
libc.fflush(libc.stdout)
|
||||
}
|
||||
|
||||
// This is an attempt at being compliant by avoiding printf.
|
||||
sigbuf: [8]byte
|
||||
|
||||
Reference in New Issue
Block a user