4 ms·
The author seems not to be aware of the recent TUI rennaisance[1]. There are libraries like termbox and blessings (python) that are a middle-ground between full
by sophacles 4y ago
The author seems not to be aware of the recent TUI rennaisance[1]. There are libraries like termbox and blessings (python) that are a middle-ground between full ncurses and adding your own ansi codes. There are a lot of modern TUI frameworks like tui-go or tui-rs that bring common GUI conventions back to the TUI (heck there are TUI programming libraries that are designed to be similar to react) - these too tend to be a lot nicer than working with ncurses.
Definitely worth checking out the full landscape these days if you're going to dive into making your console programs prettier.
[1] My words, I just coined that name (although I wouldn't be surprised if others had said it too). I mean that in the last ~decade there has been a lot of TUI work in the background, with lots of new programs and some pretty stunning results. I blame unicode - once the web folks realized they could use something like font-awesome instead of sprite-sheets (or maybe as a pre-build sprite sheet?), and the "icons in a font" movement took hold, terminal programs got a lot prettier too. It makes sense, its the same font/font renderer provided by the system no matter if the app is a browser or terminal emulator.
- cek 4y agoWhile we're piling on the TUI renaissance, check out Terminal.Gui, a cross-platform library that makes building great terminal UI's easy: https://github.com/migueldeicaza/gui.cs https://github.com/migueldeicaza/gui.cs (Disclaimer, I maintain Terminal.gui).
- hprotagonist 4y agoor rich/textual, for python, which really heap the shiny up high!
- tambourine_man 4y agoOK, this is nuts. How are they doing smooth scrolling? I want that on tmux bad. I'm suddenly really excited for what can be done on TUIs. Like I was some 40 years ago. Edit: and you can write CSS instead of curses? That's seriously cool.
- michaelsbradley 4y agoMake sure to check out Notcurses! https://github.com/dankamongmen/notcurses#readme https://github.com/dankamongmen/notcurses#readme demo: https://www.youtube.com/watch?v=dcjkezf1ARY https://www.youtube.com/watch?v=dcjkezf1ARY
- csdvrx 4y ago> Make sure to check out Notcurses! This so much! Dank, Jart, Yatli and HPA are 4 people whose work is single handedly pushing TUIs forward. There are others, but these 4 are the poggers, and I don't think the likes of me (or Christian, or Autumn, etc) can stand the comparison. Notcurses is a unique work of love and art worth all the praises in the world.
- tambourine_man 4y agoOh my god. This is crazy. I never knew this could be done. Thanks
- defaultcompany 4y agoNow that’s what I call a demo
- jart 4y ago> The author seems not to be aware of the recent TUI renaissance The title should be changed to (2019) because this post came out at about the same time as the teletypewriter aristocracy kicked off the renaissance.
- entelechy0 4y ago