[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

🔥 example(term): drop empty-value workaround now handled by renderer

The `value || " "` fallback previously worked around the renderer's
inability to attach a caret to an empty text node. That case is now
handled directly by the renderer, so the example can pass the raw
value through and let the caret resolve at the input box's origin.

Charles Lowell (Jul 8, 2026, 2:16 PM +0300) 49f55087 8d47badc

+1 -6
+1 -6
examples/text-input/index.ts
··· 114 114 }, 115 115 bg: inputBg, 116 116 }), 117 - // A single space stands in for an empty value: Clay does not emit a 118 - // text render command for an empty string, which means the renderer 119 - // cannot resolve the caret's cell when the field is empty. The space 120 - // is invisible against the input background. When the renderer 121 - // gains a fallback for empty-text carets, drop the `|| " "`. 122 - text(value || " ", { color: label, caret }), 117 + text(value, { color: label, caret }), 123 118 close(), 124 119 open("hint", { layout: { height: fixed(1) } }), 125 120 text("← → move Backspace delete Esc or Ctrl+C exit", { color: hint }),