mirror of
https://github.com/openai/codex.git
synced 2026-05-01 09:56:37 +00:00
This PR replicates the `tui` code directory and creates a temporary parallel `tui_app_server` directory. It also implements a new feature flag `tui_app_server` to select between the two tui implementations. Once the new app-server-based TUI is stabilized, we'll delete the old `tui` directory and feature flag.
12 lines
548 B
Rust
12 lines
548 B
Rust
//! Shared UI constants for layout and alignment within the TUI.
|
|
|
|
/// Width (in terminal columns) reserved for the left gutter/prefix used by
|
|
/// live cells and aligned widgets.
|
|
///
|
|
/// Semantics:
|
|
/// - Chat composer reserves this many columns for the left border + padding.
|
|
/// - Status indicator lines begin with this many spaces for alignment.
|
|
/// - User history lines account for this many columns (e.g., "▌ ") when wrapping.
|
|
pub(crate) const LIVE_PREFIX_COLS: u16 = 2;
|
|
pub(crate) const FOOTER_INDENT_COLS: usize = LIVE_PREFIX_COLS as usize;
|