rho-coding-agent 1.19.2

A lightweight agent harness inspired by Pi
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shared geometry for the prompted composer input.

use super::render::display_width;

pub(super) const PROMPT_PREFIX: &str = "> ";

pub(super) fn prompt_width() -> usize {
    display_width(PROMPT_PREFIX)
}

pub(super) fn content_width(composer_width: usize) -> usize {
    composer_width.saturating_sub(prompt_width()).max(1)
}