4 ms·
Another alternative to consider is https://github.com/gdamore/tcell https://github.com/gdamore/tcell termbox-go has a couple of pretty wicked global variables,
by heavenlyhash 10y ago
Another alternative to consider is https://github.com/gdamore/tcell https://github.com/gdamore/tcell
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.
- akkartik 10y agoInteresting you should mention testing, since I use termbox (not termbox-go) in a teaching/exploratory project to come up with more testable OS primitives. Among other things, I implemented a fake screen for this project. https://github.com/akkartik/mu#readme https://github.com/akkartik/mu#readme
- heavenlyhash 10y agoWow, that's... just, wow. > 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.
- akkartik 10y agoThanks! Though I don't want to overstate where we are at this point. I implemented all this at the "syscall" level for an extremely toy simulated computer. We don't really yet have the chops to implement syscalls in a real-world OS. But my collaborator and I have been slowly learning what we need. The first system we've been playing with is OpenBSD.
- cschmidt 10y agotcell is what is used by the micro editor https://github.com/zyedidia/micro https://github.com/zyedidia/micro
- chrissnell 10y agoAnother alternative that provides a higher-level interface with widgets is https://github.com/gizak/termui https://github.com/gizak/termui. I used it to build sparkyfish, my open source console-based network speed tester: https://github.com/chrissnell/sparkyfish https://github.com/chrissnell/sparkyfish