Live data from Hacker News

Termui – Go terminal dashboard

github.com

11–20 of 74 posts

Re: Termui – Go terminal dashboard

#12
post #8

Are there other in-terminal applications that have browser-like presentation options like this? Specifically with padding/margin and a "responsive" view? In short, very, very cool.

There's a node.js implementation of something very similar at https://github.com/yaronn/blessed-contrib

Re: Termui – Go terminal dashboard

#15
How precious. I thought that the novelty of "my website is a terminal" had worn off by now, but oh well.

One thing which is subpar about such an interface is that you basically have to type "help" unless you just want to blindly guess what the commands are. This is like a landing page that has a button that says "show what sites I can go to from here": why not just show my options straight away? Unnecessary indirection.

Re: Termui – Go terminal dashboard

#17
post #3

All these Go applications/talks/whatever coming out of the woodwork make me giggle. YOU CAN'T DO AWESOME STUFF WITHOUT GENERICS, OK?

I don't think anybody's said anything like that.

You can build awesome software projects using almost any toolset. C, or C++, or Ruby, or Go, or Java, or…

The question is – is the trade-off worth it? Lack of generics makes things more awkward – but it's also simpler, so maybe it's a net gain? Some people think it is, and some people think it's not. But it's a useful conversation to have.

Re: Termui – Go terminal dashboard

#18
Turns out I recently wrote a dashboard client (quick hack in Ruby, soon converted to Go) for our status monitor app server (in Go, exposes only an API to get the results). The monitor is on Digital Ocean and the dashboard is on premises and runs on ArchLinux (on an old spare machine, soon a RPi because noise and thermal exhaust, and why wwe'll convert the client to Go, to lower overhead as much as possible), switches to vt8 on boot and does its thing straight into tty8. It can also be run locally, is responsive to resize, and triggers notifications via the bell (pcspkr on the dashboard machine, terminal bounce+tab icon on OS X Terminal.app) when something bad happens.

Learning about terminal escape sequences and capabilities (SIGWINCH, alternate screen, doing coloring non naively, clear part/all of line/screen) was quite fun and not that hard.

Going terminal/VT is incredibly interesting for us when building such tools because the setup is extremely simple, robust, secure, and portable.

This package will certainly allow us to go to the next level much more easily.

Post reply on HN