I build K67, a Kubernetes console in Go with a talking cat instead of a dog. Version 0.4 was about giving it your LLM, not mine. Version 0.5.0, out this week, is about a dumber and more embarrassing problem: the interface did not fit on the screen.

Open the console in a short terminal, the kind you get from an editor panel or a split pane, and the old layout rendered every row of the resource list at once. The footer got pushed off the bottom, the header ate space the pods needed, and the whole thing looked broken in exactly the place a developer is most likely to run it.

The fix: window the list, shrink the cat

Two changes, both in v0.5.0:

A scrolling list window. The resource table now windows to your terminal height instead of rendering every row. A "rows X-Y of N" indicator shows where you are in the list, and the footer stays put. Page up and page down move by a page, home and end jump to the edges, and g and G work the way terminal people expect. The j and k keys and the number keys from before are unchanged.

A compact header. Sifu, the cat, has a speech bubble, and the bubble is the first thing to go when space gets tight. In a terminal under 24 rows, or in Stern Mode, the bubble collapses to a one-liner beside the title and the resources get the room. The cat survives. The commentary gets shorter. Everyone wins.

The part I actually care about: the regression test

Layout bugs like this come back. Someone adds a line to a view, the frame grows by one row, and a short terminal somewhere clips again, silently.

So the test suite now renders the frame at every height from 16 to 40 rows and asserts that it fits. Not a screenshot comparison and not a mock: the real frame, checked against the real height. If a future change makes the console too tall for a 16-row terminal, the build fails before a user finds it.

That is the whole release, really. The feature is scrolling. The lesson is that "fits on the screen" is a testable property, and if your tool runs in terminals, some of those terminals are short.

Try it

Just run it:

go install github.com/Sun-Wukhan/k67@latest k67 

Bare k67 launches the interactive console, with a demo cluster when no Kubernetes context is found, so you can poke at it without a cluster. --once <view> remains the one-shot scripting mode. Binaries for macOS, Linux and Windows are on the release page.

Repo: https://github.com/Sun-Wukhan/k67
Release: https://github.com/Sun-Wukhan/k67/releases/tag/v0.5.0

Short terminal horror stories welcome. I cannot be the only one whose tools only ever got tested at full screen.

  • Navid Khan