Module layout

Module layout 

Source
Expand description

Terminal layout with ANSI scrolling regions

Provides a split terminal layout:

  • Scrollable content area (top) - for tool output, thinking, responses
  • Fixed status line - for progress indicator
  • Fixed input line - always visible prompt

Uses ANSI escape codes for scroll regions, compatible with most terminals.

Modules§

escape
ANSI escape codes for scroll region control

Structs§

LayoutState
Shared state for terminal layout
TerminalLayout
Terminal layout manager with scroll regions

Functions§

print_to_scroll_region
Print content to the scroll region (normal output area) This ensures output goes to the right place when layout is active
println_to_scroll_region
Println to the scroll region