HeadlinesBriefing favicon HeadlinesBriefing.com

Developer Builds Custom TUI Framework After Framework Fatigue

Hacker News •
×

After growing frustrated with existing TUI frameworks that require constant chasing of upstream changes, a developer created movwin, their own Python-based TUI framework. Built on top of ncurses, the library aims for "acceptable" Unicode support and performance, targeting startup times of 200-300ms on older hardware. The developer notes performance issues with other frameworks, some requiring up to two seconds just to initialize.

The framework already powers several practical applications including tracktivity for activity tracking, bine as a hex editor, and a time-tracking tool with Arduino integration. movwin implements a window system with tiling layouts and supports popups for various UI elements. Performance remains a focus, with the hex editor efficiently handling 2GB file searches using Python's bytes.find() on mmap objects.

Theming capabilities include built-in "amber" and "bluegray" themes that automatically change based on the month, with custom themes definable in a JSON configuration file. The developer has decided not to publish the code publicly, expressing concerns about AI companies scraping and potentially selling their work while disregarding attached licenses.