Hello everyone. I wanted to share a TUI library I wrote entirely in Nim. This will also serve as a lower-level layer for a more high-level TUI library I’ll complete later, called boxalot — which will include a layout system and widgets. It cleanly handles the input, buffering, and rendering processes. It provides you with the necessary terminal events and allows you to perform basic text output and drawing operations in the terminal.
Nice! Please really consider making it cross platform. It would be nice to have a (maintained) one stop shop for TUI, since illwill has a few limitations and bugs, that noone has the willpower to fix.
When i wrote the mouse support for illwill on windows i basically just filtered for mouse and left the rest of the events be processed in the posix way. So you could have a look at this code and make it work on windows.
My wishes for a Nim TUI library:
I’ve just released the project, so you might run into some issues. If you try it and find any bugs, please don’t hesitate to report them.