Skip to content

Commit

Permalink
Fixed color output on "modern terminals".
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Jan 8, 2025
1 parent 2e0fac5 commit cb8e13e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/icy_engine/src/formats/ansi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,11 @@ impl StringGenerator {
}
x += 1;
}

// for longer modern terminal output ecs[0m is needed to reset colors at line end.
if !self.options.longer_terminal_output && self.options.modern_terminal_output {
state.fg = DOS_DEFAULT_PALETTE[7].clone();
state.bg = DOS_DEFAULT_PALETTE[0].clone();
}
result.push(line);
}
result
Expand Down

0 comments on commit cb8e13e

Please sign in to comment.