From 9dd01b2da52055337ce8762cc7daf8dee6b651a8 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 16 Apr 2025 17:25:22 +0200 Subject: [PATCH] Fixed help styling --- src/ssh/handler.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ssh/handler.rs b/src/ssh/handler.rs index 5d75766..26f62cd 100644 --- a/src/ssh/handler.rs +++ b/src/ssh/handler.rs @@ -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()?; }