Fixed help styling
This commit is contained in:
parent
fba5e5b813
commit
9dd01b2da5
|
@ -354,7 +354,13 @@ impl russh::server::Handler for Handler {
|
||||||
let writer = terminal.backend_mut().writer_mut();
|
let writer = terminal.backend_mut().writer_mut();
|
||||||
|
|
||||||
writer.leave_alternate_screen()?;
|
writer.leave_alternate_screen()?;
|
||||||
writer.write_all(err.to_string().replace('\n', "\n\r").as_bytes())?;
|
writer.write_all(
|
||||||
|
err.render()
|
||||||
|
.ansi()
|
||||||
|
.to_string()
|
||||||
|
.replace('\n', "\n\r")
|
||||||
|
.as_bytes(),
|
||||||
|
)?;
|
||||||
writer.flush()?;
|
writer.flush()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user