tweaks
This commit is contained in:
@@ -292,11 +292,17 @@ impl RetroTui {
|
|||||||
Style::default()
|
Style::default()
|
||||||
.fg(TERMINAL_AMBER)
|
.fg(TERMINAL_AMBER)
|
||||||
.add_modifier(Modifier::BOLD)
|
.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 {
|
} else {
|
||||||
Style::default().fg(TERMINAL_GREEN)
|
Style::default().fg(TERMINAL_GREEN)
|
||||||
};
|
};
|
||||||
|
|
||||||
Line::from(Span::styled(line.clone(), style))
|
Line::from(Span::styled(format!(" {}", line), style))
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
use crate::retro_tui::RetroTui;
|
||||||
use g3_core::ui_writer::UiWriter;
|
use g3_core::ui_writer::UiWriter;
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use crate::retro_tui::RetroTui;
|
|
||||||
|
|
||||||
/// Console implementation of UiWriter that prints to stdout
|
/// Console implementation of UiWriter that prints to stdout
|
||||||
pub struct ConsoleUiWriter;
|
pub struct ConsoleUiWriter;
|
||||||
@@ -13,7 +13,7 @@ impl ConsoleUiWriter {
|
|||||||
|
|
||||||
impl UiWriter for ConsoleUiWriter {
|
impl UiWriter for ConsoleUiWriter {
|
||||||
fn print(&self, message: &str) {
|
fn print(&self, message: &str) {
|
||||||
println!("{}", message);
|
print!("{}", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn println(&self, message: &str) {
|
fn println(&self, message: &str) {
|
||||||
@@ -67,7 +67,7 @@ impl UiWriter for ConsoleUiWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn print_agent_prompt(&self) {
|
fn print_agent_prompt(&self) {
|
||||||
print!("🤖 ");
|
print!(" ");
|
||||||
let _ = io::stdout().flush();
|
let _ = io::stdout().flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user