pub struct TuiRenderer {
pub tool_history: ToolOutputHistory,
pub verbose: bool,
pub last_turn_stats: Option<TurnStats>,
pub model: String,
pub preview_shown: bool,
/* private fields */
}Expand description
TUI-aware renderer that outputs above the viewport.
Fields§
§tool_history: ToolOutputHistoryRecent tool outputs for /expand replay.
verbose: boolWhen true, tool output is never collapsed.
last_turn_stats: Option<TurnStats>Last turn stats for status bar display.
model: StringCurrent model name displayed in the status bar.
preview_shown: boolSet when an ApprovalRequest with a preview was shown.
Implementations§
Source§impl TuiRenderer
impl TuiRenderer
pub fn new() -> Self
Sourcepub fn render_to_buffer(
&mut self,
event: EngineEvent,
buffer: &mut ScrollBuffer,
)
pub fn render_to_buffer( &mut self, event: EngineEvent, buffer: &mut ScrollBuffer, )
Render an engine event into the scroll buffer.
Sourcepub fn stop_spinner(&mut self)
pub fn stop_spinner(&mut self)
Stop any running spinner (no-op in TUI mode).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiRenderer
impl RefUnwindSafe for TuiRenderer
impl Send for TuiRenderer
impl Sync for TuiRenderer
impl Unpin for TuiRenderer
impl UnsafeUnpin for TuiRenderer
impl UnwindSafe for TuiRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more