Skip to main content

Module wrap_input

Module wrap_input 

Source
Expand description

Word-wrapping input renderer.

Renders TextArea content with word-wrap (matching conversation text) while preserving cursor position. The TextArea handles editing logic; this module only handles display.

Fixes #517: input prompt should word-wrap like conversation text blocks.

Functionsยง

render_wrapped_input
Render the TextArea content with word-wrapping into the given area, drawing the cursor at the correct visual position.
wrapped_height
Compute the visual height (wrapped lines) for all textarea content.