102 points · by MaxLeiter · 10y ago · 29 comments
termbox-go has a couple of pretty wicked global variables, and they caused me a surprising amount of issues last time I used it. By contrast, tcell has good interfaces, and it shows: tcell even has a SimulationScreen you can use for testing.
> New, testable interfaces for the operating system.
So you implemented this at the syscall level, and that just happened to include a tty? Very neat.
I'm not saying waf is bad, I've never used it (obviously, since I failed to install it). But it was an annoying hoop to jump through.
I do think re-doing the old unix lib faithfuls is a Good Idea. A cleaner curses like library with a better interface would be great.
Edit: ack, sorry I momentarily forgot that I also recently ripped out my project's dependence on `make`. You can see my old makefile at an earlier commit: https://github.com/akkartik/mu/blob/d9ee2076d9/termbox/makef...
It doesn't do anything fancy -- certainly not like the progress bars linked in a sibling comment -- but it also works without setting the TTY into raw mode, which means your scrollback is never disrupted.
The standard UNIX terminal UI library.