Skip to content

feat: configurable input area max height (default 8 lines) #10418

@iRonin

Description

@iRonin

Problem

The TUI input area height is hardcoded to a maximum of 8 visual lines:

return min(max(visual_lines, 1), 8)  # cli.py:8423

This makes long prompts feel cramped — users can't see enough of their text at once, especially when working with multi-paragraph prompts or when paste collapse is disabled.

Solution

Add a config option display.input_max_height (default: 8) that controls the max visual lines for the input area.

# cli.py
def _input_height():
    ...
    return min(max(visual_lines, 1), CLI_CONFIG.get('display', {}).get('input_max_height', 8))

Config

Key Default Range Purpose
display.input_max_height 8 1–50 Max visual lines for the input area

Notes

  • The input area still grows dynamically with content, just with a configurable ceiling
  • A reasonable max of 50 prevents the input from consuming the entire terminal
  • Minimum of 1 ensures the input is always visible

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions