From: Eric Curtin Date: Sun, 12 Jan 2025 18:23:10 +0000 (+0000) Subject: Reset color before we exit (#11205) X-Git-Tag: upstream/0.0.4488~22 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=924518e2e5726e81f3aeb2518fb85963a500e93a;p=pkg%2Fggml%2Fsources%2Fllama.cpp Reset color before we exit (#11205) We don't want colors to leak post termination of llama-run. Signed-off-by: Eric Curtin --- diff --git a/examples/run/run.cpp b/examples/run/run.cpp index bfa8378b..0ad8bb15 100644 --- a/examples/run/run.cpp +++ b/examples/run/run.cpp @@ -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