From 0eee66f21b75368146fbcc7b0862b8c1cb96c0bf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 30 Dec 2023 21:47:34 -0800 Subject: [PATCH] termio/exec: stylistic change on abnormal exit --- src/termio/Exec.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index df0b6cb36..16c25eb6b 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -587,13 +587,12 @@ pub fn childExitedAbnormally(self: *Exec, exit_code: u32, runtime_ms: u64) !void // Output our error message try t.setAttribute(.{ .@"8_fg" = .bright_red }); try t.setAttribute(.{ .bold = {} }); - try t.printString("Ghostty failed to launch the requested command."); + try t.printString("Ghostty failed to launch the requested command:"); try t.setAttribute(.{ .unset = {} }); t.carriageReturn(); try t.linefeed(); try t.linefeed(); - try t.printString("Command: "); try t.printString(command); try t.setAttribute(.{ .unset = {} }); @@ -601,7 +600,7 @@ pub fn childExitedAbnormally(self: *Exec, exit_code: u32, runtime_ms: u64) !void try t.linefeed(); try t.linefeed(); try t.printString("Runtime: "); - try t.setAttribute(.{ .@"8_fg" = .bright_red }); + try t.setAttribute(.{ .@"8_fg" = .red }); try t.printString(runtime_str); try t.setAttribute(.{ .unset = {} }); @@ -612,7 +611,7 @@ pub fn childExitedAbnormally(self: *Exec, exit_code: u32, runtime_ms: u64) !void t.carriageReturn(); try t.linefeed(); try t.printString("Exit Code: "); - try t.setAttribute(.{ .@"8_fg" = .bright_red }); + try t.setAttribute(.{ .@"8_fg" = .red }); try t.printString(exit_code_str); try t.setAttribute(.{ .unset = {} }); }