mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Clear screen instead of resetting the terminal (#2431)
Resetting the terminal can change color themes and other settings. This commit changes the behavior to just clear the screen.
This commit is contained in:
parent
56510d9df0
commit
01b14ff316
@ -157,7 +157,7 @@ impl Status {
|
||||
if std::io::stderr().is_terminal() {
|
||||
// Clear the terminal.
|
||||
let esc = 27 as char;
|
||||
write!(w, "{esc}c{esc}[1;1H")?;
|
||||
write!(w, "{esc}[2J{esc}[1;1H")?;
|
||||
}
|
||||
|
||||
w.set_color(&color)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user