Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like the tui UI, what was it like mapping it layout in the terminal? I've always wanted to try building a CLI interface like that.


A friend of mine built this, and I feel the need to promote it: https://github.com/dankamongmen/notcurses

There are Rust and C++ bindings, and it performs some truly ridiculous TUI tricks.


Surprisingly easy! I was scared of building TUI like this because it seemed so complex, but it's actually not that hard. Or at least, with tui-rs[1], which is surprisingly easy to pick up. Once you read two or three examples, you'll gain pretty good overview of how to build applications with it. I can definitely recommend it, it does all the heavy lifting and leaves surprisingly little for you to care about. Just don't forget to unset terminal raw mode before your application exits, or else you'll start breaking people's terminals :-)

[1]: https://github.com/fdehau/tui-rs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: