Commit 7f0ffdb

Barrett Ruth  ·  2026-10-17 13:17:57 -0400 EDT
parent b8af7ac
fix: reset colors before clearing the screen on attach
1 files changed,  +1, -1
+1, -1
jump to top
......@@ -184,7 +184,7 @@ pub fn attach(alloc: Allocator, io: Io, name: []const u8, opts: AttachOptions) !
184184 _ = cross.c.tcsetattr(lib_posix.STDIN_FILENO, cross.c.TCSANOW, &raw_termios);
185185 }
186186
187- const clear_seq = "\x1b[2J\x1b[H";
187+ const clear_seq = "\x1b[0m\x1b[2J\x1b[H";
188188 _ = try lib_posix.write(lib_posix.STDOUT_FILENO, clear_seq);
189189
190190 const env_str = opts.tracked_env orelse "";