This commit is contained in:
Dhanji Prasanna
2025-10-02 15:34:37 +10:00
parent 4de994a2a7
commit 1faf16b23a
2 changed files with 37 additions and 31 deletions

View File

@@ -292,11 +292,17 @@ impl RetroTui {
Style::default()
.fg(TERMINAL_AMBER)
.add_modifier(Modifier::BOLD)
} else if line.starts_with("SYSTEM INITIALIZED")
|| line.starts_with("AWAITING COMMAND")
{
Style::default()
.fg(TERMINAL_DIM_GREEN)
.add_modifier(Modifier::BOLD)
} else {
Style::default().fg(TERMINAL_GREEN)
};
Line::from(Span::styled(line.clone(), style))
Line::from(Span::styled(format!(" {}", line), style))
})
.collect();

View File

@@ -1,6 +1,6 @@
use crate::retro_tui::RetroTui;
use g3_core::ui_writer::UiWriter;
use std::io::{self, Write};
use crate::retro_tui::RetroTui;
/// Console implementation of UiWriter that prints to stdout
pub struct ConsoleUiWriter;
@@ -13,7 +13,7 @@ impl ConsoleUiWriter {
impl UiWriter for ConsoleUiWriter {
fn print(&self, message: &str) {
println!("{}", message);
print!("{}", message);
}
fn println(&self, message: &str) {
@@ -67,7 +67,7 @@ impl UiWriter for ConsoleUiWriter {
}
fn print_agent_prompt(&self) {
print!("🤖 ");
print!(" ");
let _ = io::stdout().flush();
}