Fixed help styling

This commit is contained in:
2025-04-16 17:25:22 +02:00
parent fba5e5b813
commit 9dd01b2da5

View File

@@ -354,7 +354,13 @@ impl russh::server::Handler for Handler {
let writer = terminal.backend_mut().writer_mut();
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()?;
}