[PR #9585] fix(tui): hide logo and adjust layout for small terminals #13151

Closed
opened 2026-02-16 18:18:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9585

State: closed
Merged: No


Summary

  • Hide logo when terminal width < 42 chars to prevent rendering glitches
  • Hide logo and top padding when terminal height < 20 lines (compact mode)
  • Hide tips when terminal height < 16 lines
  • Prioritize prompt input visibility over decorative elements

Problem

On narrow/small terminals:

  1. Logo displays with broken/glitched unicode block characters
  2. Multiline input gets cut off and second line is not visible

Solution

Detect terminal dimensions using useTerminalDimensions() and conditionally hide decorative elements to ensure the prompt input always has enough space.

Thresholds

Element Min Width Min Height
Logo 42 chars 20 lines
Tips - 16 lines
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9585 **State:** closed **Merged:** No --- ## Summary - Hide logo when terminal width < 42 chars to prevent rendering glitches - Hide logo and top padding when terminal height < 20 lines (compact mode) - Hide tips when terminal height < 16 lines - Prioritize prompt input visibility over decorative elements ## Problem On narrow/small terminals: 1. Logo displays with broken/glitched unicode block characters 2. Multiline input gets cut off and second line is not visible ## Solution Detect terminal dimensions using `useTerminalDimensions()` and conditionally hide decorative elements to ensure the prompt input always has enough space. ### Thresholds | Element | Min Width | Min Height | |---------|-----------|------------| | Logo | 42 chars | 20 lines | | Tips | - | 16 lines |
yindo added the pull-request label 2026-02-16 18:18:01 -05:00
yindo closed this issue 2026-02-16 18:18:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13151