Skip to content

Commit 924518e

Browse files
authored
Reset color before we exit (#11205)
We don't want colors to leak post termination of llama-run. Signed-off-by: Eric Curtin <[email protected]>
1 parent 9a48399 commit 924518e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/run/run.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(_WIN32)
3131
[[noreturn]] static void sigint_handler(int) {
32-
printf("\n");
32+
printf("\n\033[0m");
3333
exit(0); // not ideal, but it's the only way to guarantee exit in all cases
3434
}
3535
#endif

0 commit comments

Comments
 (0)