xonecas.io
70160
Ce

cel-tui / commit ac255bb

docs(TODO): add cursor style, scrollbar styling, Textarea and Editor components

xonecas2026-04-05 ac255bb7181466ff12d8ee3d1c0a93f6124f4ea3 parent 432bdec

1 file changed

TODO.md+8โˆ’0
@@ -50,6 +50,14 @@ Remaining work, known bugs, and planned improvements.
5050
5151 ## Future Enhancements
5252
53+- ๐Ÿ’ก **Cursor style/shape customization** โ€” TextInput currently renders the cursor as an inverted cell (block cursor). There's no way to choose bar (`โ”‚` between characters), underline, or custom cursor characters. A `cursorStyle` prop on TextInput (`"block" | "bar" | "underline"`) would cover the common cases. The native terminal cursor shape could also be set via DECSCUSR (`CSI q`) sequences to match.
54+
55+- ๐Ÿ’ก **Scrollbar styling** โ€” Scrollbar characters (`โ”ƒ`/`โ”‚` vertical, `โ”`/`โ”€` horizontal) and colors are hardcoded in `paintScrollbar`. A `scrollbarStyle` prop on containers (or a global theme option) would allow customizing thumb/track characters and colors. Currently the only two visual elements the framework doesn't support styling.
56+
57+- ๐Ÿ’ก **Textarea component** (`packages/components`) โ€” A higher-level wrapper around TextInput that handles the autogrowing pattern out of the box. Props like `maxLines`, `minLines`, `submitKey`, and `placeholder` would cover the common chat-input / form-field use case without requiring the `HStack + flex + maxHeight` boilerplate. Could also include optional line-count display and character limit.
58+
59+- ๐Ÿ’ก **Editor component** (`packages/components`) โ€” A TextInput with a line-number gutter, built as a component. Would compose an HStack with a fixed-width line-number column (styled, right-aligned) alongside a flex TextInput, keeping scroll synchronized. Useful for code/config editing use cases like the markdown editor example.
60+
5361 - ๐Ÿ’ก Additional example apps (text editor from spec reference example)
5462 - ๐Ÿ’ก `overflow: "hidden"` as explicit prop (currently all containers clip by default, which matches the spec's default behavior, but the prop value is not checked)
5563 - ๐Ÿ’ก Higher Kitty protocol levels โ€” key-release events (level 2), associated text (level 3), and full event types (level 4) for advanced input patterns (games, physical key layout awareness)