Skip to content

fix(tui): hide logo and adjust layout for small terminals#9585

Closed
cprayer wants to merge 1 commit into
anomalyco:devfrom
cprayer:fix/small-terminal-layout
Closed

fix(tui): hide logo and adjust layout for small terminals#9585
cprayer wants to merge 1 commit into
anomalyco:devfrom
cprayer:fix/small-terminal-layout

Conversation

@cprayer

@cprayer cprayer commented Jan 20, 2026

Copy link
Copy Markdown

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

- 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

Fixes anomalyco#8370, anomalyco#4332, relates to anomalyco#3547
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@cprayer

cprayer commented Jan 20, 2026

Copy link
Copy Markdown
Author

My apologies. OpenCode(Oh-My-OpenCode) submitted a PR without my approval. I'll close it now.

@cprayer cprayer closed this Jan 20, 2026
@cprayer
cprayer deleted the fix/small-terminal-layout branch January 20, 2026 10:46
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant