I investigated why the terminal reset command can be slow and asked fx to write a faster alternative in Zig. The exploration led me through ncurses, tset, and terminfo, and reinforced how far back technology stacks reach and how good system design can endure.
I use reset when a terminal enters a bad state, such as producing garbled output.
In 1979, 3BSD's tset had a sleep(1) to let mechanical printer-and-ink terminals “settle down.”
I asked fx to write me a faster alternative in Zig.
The faster alternative takes 1ms instead of 1s.
I described exploring ncurses, tset, and terminfo as really cool.
I said, “It's legit fascinating how far back our technology stack goes” and described good system design as enduring despite occasional “spider webs.”
I pointed readers to https://t.co/7EH0lothku for an explainer and alternative solutions.
I said that once you start using fx, you'll notice slowness like this everywhere.
I posted about the terminal reset investigation on 2026-08-24 18:36 UTC.