News for hackers. Stuff that matters.
Re:Building Rich Terminal Dashboards by joseluis on Tuesday February 16, 2021 @05:31AM (#26152675)
And there's also Notcurses[0][1], which facilitates the creation of modern TUI programs, making full use of Unicode and 24-bit TrueColor. It presents an API similar to that of Curses, riding atop Terminfo. It's made in C, with C++, Python & Rust wrappers.

[0] https://notcurses.com/

[1] https://github.com/dankamongmen/notcurses

Re:Building Rich Terminal Dashboards by rsync on Tuesday February 16, 2021 @11:09AM (#26155238)
Here's what I think I would like ...

A unix command named 'topify' which allows you to create a pipeline of stdio into a top-like, updating, single screen output.

So, let's say you have a command with multiple lines of output - like netstat or certain airport commands - but instead of doing silly things like I do now:

  while true ; do airport -s ; sleep 10 ; tput clear ; done
... I could `topify airport -s` and I would just get a nice, single page, constantly refreshing output summary.

There are a LOT of commands I wish I could 'topify' from time to time ...

Re:Building Rich Terminal Dashboards by harababurel on Tuesday February 16, 2021 @11:25AM (#26155495)
Have you tried watch[0]? Sounds like it might be a decent solution for what you want.

[0] https://linux.die.net/man/1/watch

Re:Building Rich Terminal Dashboards by rsync on Tuesday February 16, 2021 @11:29AM (#26155554)
No, I had not seen that - I will take a look.

Thank you!

Re:Building Rich Terminal Dashboards by ho_schi on Tuesday February 16, 2021 @07:27AM (#26153248)
Interesting how the show their work results in a completely differnt way. I'm looking at it, because the C, C++ and the Rust interface are my working area. I love TUIs and think they are used to less. Easy usage, concise overview and high efficiency. TUIs seem to naturally restrict itself, keep tight to the task and therefore work better. Mileage may vary well ;)
Re:Building Rich Terminal Dashboards by rbanffy on Tuesday February 16, 2021 @08:33AM (#26153673)
Restraint is a great tool for engineers. When you can't to everything, you focus on what matters the most.

I used to have an IBM 3151 terminal on my desk (I wish I could afford a 3278/9 or 3290) connected over 9600 bps to my workstation. It's a great to remind me to keep things simple.

Re:Building Rich Terminal Dashboards by sidpatil on Wednesday February 17, 2021 @02:06AM (#26163565)
I have the same one on my desk, for the same reason.
Re:Building Rich Terminal Dashboards by rbanffy on Tuesday February 16, 2021 @08:31AM (#26153661)
Using curses also allows it to work on terminals that are not ANSI terminals (even though most of the actual hardware that still survives understand most of the VT-100 sequences).

Also, not all terminals have uniform coverage for ANSI codes. Apple's Terminal.App does a good job with double-width and double-height, but lacks the SGR 53 overline that VTE, Konsole and Microsoft Windows Terminal have (and that makes status lines so much better).