Somewhat related ... Is there a proper name for a "top-like interface" ? I think that "TUI" refers very broadly to any terminal user interface and both 'vim' and 'alpine' and 'top' would fall under this broad category. But is there a specific name for a refresh-every-second, full page status output - like 'top' ? Is there a standard library for creating such an interface, or do people always use curses ? Presumably c…
Very crudely, on linux you can do that with almost any CLI progam and the "watch" utility.
Hacking the planet with Notcurses: a guide to TUIs (2020) [pdf]
31–33 of 33 posts
Re: Hacking the planet with Notcurses: a guide to TUIs (2020) [pdf]
#32Earlier quoted context omitted.
TUI generally refers to a program that’s “full screen” with respect to the terminal it’s running in. Programs that don’t drive the whole terminal screen, instead generating output that may be mixed with other output in the same terminal, are often referred to as CLIs. curses dates back to around 1980: https://en.wikipedia.org/wiki/Ncurses#History
I guess but ... again, 'vim' or 'alpine' are very different than a constantly updating status like 'top'. I guess I'll just keep calling it a "top-like interface".
How so? What if `top` redrew the terminal screen if and when you pressed the r-key instead of using a timer?
Re: Hacking the planet with Notcurses: a guide to TUIs (2020) [pdf]
#33Ok, if you're looking into notcurses, you may want to watch this: https://www.youtube.com/watch?v=dcjkezf1ARY (~ 6') the WTF effect that video had on me lasted quite a while. I still can't describe it.