tweaks
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user