mirror of
https://github.com/openai/codex.git
synced 2026-05-04 05:11:37 +03:00
This is a follow-up to https://github.com/openai/codex/pull/15922. That previous PR deleted the old `tui` directory and left the new `tui_app_server` directory in place. This PR renames `tui_app_server` to `tui` and fixes up all references.
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;
|