Hacker News new | ask | show | jobs
by laumars 4037 days ago
What were your thoughts on termbox?

I've used it for a couple of projects now but I can't really get on with it. It feels so easy and straightforward at first but I often keep hitting silly annoyances that slow down debugging time or even causes fatal exceptions of its own (eg resizing a window).

So I'd be interested to hear another developers experiences with termbox

2 comments

I've built a few things on top of it now: a "rich" text editor, a layout system, and a client to my plain-text board gaming service. The two main things that have caused me trouble are:

* Inability to customise colours on systems that support it. * Weak support for wide characters as termbox works directly on "cells", but can work around it with application logic. * It's quite easy to cause fatals, especially when working directly on the underlying buffer. Need to be quite careful.

The fact that it's native and cross platform is fantastic though, I'm a little worried that early design decisions will make it hard to rectify some of the warts though without large backwards-incompatible changes.

The fatals were my main gripe as well. And to make matters worse, the crash report would be unreadable because it would dump in ncurses mode (which would also break my command prompt too)
My uses were pretty simple, but I enjoyed it.