by noshbrinken on 5/23/17, 1:40 PM with 82 comments
by git-pull on 5/23/17, 2:20 PM
- tmux counts as a TUI UX. it is backed by ncurses (https://en.wikipedia.org/wiki/Ncurses)
- colors: it supports 256 colors, 24bit colors landed in 2.2 (but haven't used it)
- layouts: 1) supports splitting multiple command lines into "panes" which are resizable 2) supports custom layouts and arrangements for panes 3) you can "zoom" in on panes via `C-b z` 4) you can actually run other TUI applications within it
- interaction: 1) tmux also forks itself into a server in the background so you can de/re-attach your workspace 2) you can create and move between collections of panes, what tmux calls "windows" 3) command-based, so configuration via ~/.tmux.conf uses the same language as scripting 4) tmux can be scripted / remote controlled, you can even send-keys and copy the contents of panes
- help: the tmux manual is superb (https://www.freebsd.org/cgi/man.cgi?query=tmux)
Downsides are, I still get glitchy issues when using vim / unicode / colors in tmux panes which are difficult to diagnose. `reset` normally fixes it. It's been this way for years, and I don't want to even begin figuring out what the hell is happening because I'm using too many plugins. Considering starting from scratch. So if you get into tmux/vim/other CLI stuff, the simpler you keep your config, the better off you'll be.
(P.S. I am the author of The Tao of tmux, a book you can read free online)
by neovintage on 5/23/17, 1:59 PM
There are many different teams within Heroku that need to provide interactions for developers via CLI whether its for dynos or data services. The guide was a way to codify building a consistent interaction that all product managers and engineers could follow. Disclaimer: I work for heroku.
by gumby on 5/23/17, 6:04 PM
Basically: Lisp supports idempotent type-based printing (print something in a form that can be read back to identify the same object -- basically unremarkable these days; consider python's __repr__ and __string__) as well as human-friendly printing.
The presentation system was remarkable in that when you printed an object it printed in the user-friendly form, but when the text was read back the IO system knew what the object was and so acted as if a machine-readable representation had been printed. It also used the type hierarchy to support mouse action in "ordinary" text, thus if you needed a SHAPE object, the mouse would highlight "Square at 4,4" and "Circle centred at 5,5, radius 7" as if it were #<CIRCLE 5,5, r=7>. In fact the "printed" representation need not be textual.
Also BSD4.1 sh is quite good one !:... and ^...^ etc were added.
As a side note, IIRC Emacs started out as Ciccarelli's TECO init file around '75/76 or so.
by sonofgod on 5/23/17, 2:06 PM
https://github.com/nvbn/thefuck
[TL;DR -- typo a command, type 'fuck', will run the command you should have run]
by zie on 5/23/17, 2:28 PM
[0] https://www.youtube.com/watch?v=hJhZhLg3obk [1] https://bpython-interpreter.org/
by czak on 5/23/17, 2:42 PM
by jszymborski on 5/23/17, 6:37 PM
You can check it out by running "telnet mapscii.me"
by xiaq on 5/23/17, 4:21 PM
The idea of enriching shell's UI is not new though, zsh and fish are both prior arts.
by romdev on 5/24/17, 12:02 AM
by zeveb on 5/23/17, 3:18 PM
Gnus is a full-featured news, email & RSS reader (and others too maybe?). I've used it for most of my life.
Magit is a full-featured git UI, good enough that I don't bother using git from the command line anymore.
by malkia on 5/23/17, 2:24 PM
I'm constant midnight commander (linux/osx), FAR commander (windows) user. I'm so glad that it works flawlessly almost anywhere there is terminal support...
by gabrielcsapo on 5/23/17, 1:48 PM
Edited: to use TUI instead of CLI
by niftich on 5/23/17, 3:02 PM
They're intuitive, interactive, come with embedded help, and use text mode to present a sophisticated, productive interface.
by yourapostasy on 5/23/17, 8:47 PM
[1] http://web.archive.org/web/20091011010412/http://www.vtsoft....
by odammit on 5/23/17, 1:48 PM
I've recently built an internal tool with inquirer and it was a really nice development and user experience. I haven't figured out the best way to test the interactions though.
termUI in go is also nice if you need graphing and viz for a dashboard like command line.
by gglitch on 5/23/17, 1:48 PM
- moc (Music on Console)
by rdavis on 5/24/17, 3:18 AM
The configuration is also very flexible and includes a python API to write your own commands[1].
by andrewf on 5/24/17, 1:09 AM
by j_s on 5/23/17, 5:51 PM
by falcolas on 5/23/17, 2:02 PM
The only thing I'd personally ask for is if you offer an interactive interface, make sure you can execute the exact same commands on the plain CLI. Also (yeah, two things) support --help and --version (as well as -h and -v) out of the box.
Color, layouts (other than those required for readability), and other things just don't really matter as much, IMO.
by dduarte on 5/23/17, 8:08 PM
by nicoburns on 5/23/17, 2:22 PM
by dennyabraham on 5/23/17, 3:03 PM
by Jaepa on 5/23/17, 2:34 PM
by odammit on 5/23/17, 2:12 PM
by vram22 on 5/23/17, 5:00 PM
by winterbe on 5/24/17, 11:25 AM
by grovegames on 5/23/17, 1:45 PM
by TheAceOfHearts on 5/23/17, 4:49 PM
I've previously used ncmpcpp [1] without any major complaints, although it's been a few years since then. It's an mpd [2] client written with ncurses.
On my personal servers I use goaccess [3] to analyze access logs. I remember being able to pick it up pretty quickly on my first try.
Only tangentially related, but you may find it useful to read the "Utility Conventions" [4] entry of The Open Group Base Specifications. I'd also suggest reading through the relevant entries under the "Program Behavior for All Programs" [5] section of GNU Coding Standards [6]. By following existing conventions (or even being aware they exist) you can sometimes make it easier for others to learn how to use your tool.
If you know JavaScript, you may consider writing your program with node. The blessed [7] library is a JavaScript reimplementation of ncurses, and there's even a react renderer [8]. This makes building the UI much easier than many of the alternatives I know. When you're ready to release, you can generate an executable [9] for easy deployment or publication. The biggest benefits of taking this approach are that it makes it very easy to achieve cross-platform support, and the barrier of entry is lower than many alternatives. The biggest caveats are that it'll be slower and much larger than if it had been written with C.
[1] http://rybczak.net/ncmpcpp/screenshots/
[4] http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_...
[5] https://www.gnu.org/prep/standards/html_node/Program-Behavio...
[6] https://www.gnu.org/prep/standards/html_node/index.html
[7] https://github.com/chjj/blessed
by dbkaplun on 5/24/17, 4:33 AM
by Grom_PE on 5/23/17, 2:40 PM
by txdv on 5/23/17, 2:11 PM
by skocznymroczny on 5/23/17, 3:44 PM
by type0 on 5/24/17, 1:36 AM
by swah on 5/25/17, 11:55 AM
by type0 on 5/24/17, 2:14 AM
by souenzzo on 5/23/17, 1:49 PM