Skip to content

Commit

Permalink
Reset color before we exit (ggerganov#11205)
Browse files Browse the repository at this point in the history
We don't want colors to leak post termination of llama-run.

Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin authored Jan 12, 2025
1 parent 9a48399 commit 924518e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/run/run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

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

0 comments on commit 924518e

Please sign in to comment.