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
+1,
-1
jump to top
| ... | ... | @@ -184,7 +184,7 @@ pub fn attach(alloc: Allocator, io: Io, name: []const u8, opts: AttachOptions) ! | |
| 184 | 184 | _ = cross.c.tcsetattr(lib_posix.STDIN_FILENO, cross.c.TCSANOW, &raw_termios); | |
| 185 | 185 | } | |
| 186 | 186 | ||
| 187 | - | const clear_seq = "\x1b[2J\x1b[H"; | |
| 187 | + | const clear_seq = "\x1b[0m\x1b[2J\x1b[H"; | |
| 188 | 188 | _ = try lib_posix.write(lib_posix.STDOUT_FILENO, clear_seq); | |
| 189 | 189 | ||
| 190 | 190 | const env_str = opts.tracked_env orelse ""; |