19 ms·
Can't this be made more general and modular by creating a windowing system for terminals first, and then write little programs that operate in that system?
by amelius 8y ago
Can't this be made more general and modular by creating a windowing system for terminals first, and then write little programs that operate in that system?
- sjackso 8y agoAnother commenter has mentioned Python's urwid [0], which is precisely that. [0] http://urwid.org http://urwid.org
- shawnz 8y agoThis seems more like a python version of curses than a window manager
- EvergreenTree 8y agoThere are already curses bindings included with python; urwid is intended to be a higher level console UI library (widgets, text input boxes, dialogues, etc).
- scrumper 8y agoThere's also Cursive if you're doing Rust stuff.
- monkeynotes 8y agoAt what point do we just say why not 'install a modern GUI'?
- Jtsummers 8y agoI use TMUX to essentially create what this person has made. It's much more versatile than a GUI for me because I can kill any "widget" and reopen it with altered command line parameters. It's an incredibly useful and productive way to work. And if I realize that I want data that isn't present, I can just split a TMUX pane (or start a new TMUX window) and display it there.
- JdeBP 8y agoThere was a point where it was that simple to run GUI widgets on a desktop, too. The likes of xman and xclock were just that, programs that one could just run and stop.
- earenndil 8y agoSuch things are not dead! I still use one for my clock (buici-clock) and another to show battery life (xbattbar).
- theshrike79 8y agoCan you share how you create a certain window/buffer setup on tmux automatically?
- Jtsummers 8y agotmuxinator Someone mentioned it a few months back and it greatly simplified my life. You specify your layouts (and tmux will give you the information to copy a current layout). You can then tell it what programs to run in each window of the layout. So I have a window broken into 5 panes (as an example). The top left runs emacs (via emacsclient) and opens my ledger.org file. The other 4 show various reports I want to see: Current cleared balance, current uncleared balance, current uncleared transactions, future transactions (out to a month), and a running balance sheet across the past several months. In another two windows I just have a shell and an emacsclient instance (because I live in emacs). Then as I come up with other things I want to see (weather information, summaries of my todos, email inbox (tally at least) I can add new window and pane configurations to my tmuxinator configuration. When I restart it, everything is back as I had it (if I put them in the config). I haven't done as much coding at home as I'd like lately (and it's all Windows at the office). But I have a couple other tmuxinator configs that will layout several windows and panes for development. Like launch an editor, and have spaces laid out like I want for debuggers and test monitoring scripts. As appropriate to the language and task. https://github.com/tmuxinator/tmuxinator https://github.com/tmuxinator/tmuxinator For the constantly refreshed display, it's mostly `watch -t <some commands>` (modifying the refresh rate if necessary. `-t` removes the title text from the top of watch so it only shows the command outputs. Which is something it took me way too many years to realize.
- inetknght 8y agoI have yet to see a modern GUI that didn't put pretty little animations a higher priority than being modular and configurable and having as much or as little data density as I desire. Command lines, on the other hand, do it natively if not intuitively.
- organsnyder 8y agoHave you seen GKrellM? http://gkrellm.srcbox.net/ http://gkrellm.srcbox.net/
- MisterTea 8y agoTheir example demonstrates how cluttered the GUI is. I suppose you could change skins to something less gaudy but I bet that winds up looking like a terminal application.
- oever 8y agoYou can set the width to be larger. I have it at 1000px. That makes a for a nice, light and informative status window.
- monkeynotes 8y agoMy point was that at some point adding more desktop-like functionality to Terminal you essentially create a GUI. I could argue that OSX / Ubuntu are modular and configurable and easily allow you to control data density too. Ultimately it's obviously whatever tool makes you most productive. My comment was more of a flippant observation of the nature of human endeavour.
- inetknght 8y agoIn my experience, OSX is not modular and configurable out-of-the-box. You need to install plugins. Ubuntu is the red-headed stepchild of Linux which wants to be Windows. I use it at work. I hate it. I'd rather use Fedora.
- walrus01 8y agoor you can compromise with an ultra minimalist GUI that runs on top of xorg, such as openbox/fluxbox and similar. https://en.wikipedia.org/wiki/Openbox https://en.wikipedia.org/wiki/Openbox Archbang , which uses openbox, is a good example of a distribution to try in a VM if anyone wants to see an example in action.
- indigodaddy 8y agoArchbang is still around??
- cryptonector 8y agoThe mouse. It sucks. The latency too (over long thin pipes). I prefer to live in a textual universe anyways. I can't not use a GUI browser for a lot of things, sadly, and occasionally I end up using an IDE, but as much as possible I use tmux/screen + $EDITOR + cscope + scripts + ... as my UI/IDE. It's just better. It works great over mosh, over SSH, over long thin pipes, over short wide pipes -- it just works. Latency is low, and mouse use nil -- win-win. EDIT: Also, it's a lot easier to organize and find my way around nested tmuxes than it is to organize tons of windows. Yes: I nest tmuxes.
- nimmer 8y agoYes. Bonus: you can reuse plenty of existing applications.
- tzahola 8y agoThat's an excellent idea! It could be called I don't know... maybe "tmux"? Or "screen"?
- oftenwrong 8y agoor "dvtm" http://www.brain-dump.org/projects/dvtm/ http://www.brain-dump.org/projects/dvtm/
- chaosite 8y agoHmm, let's also allow you to edit text in those windows. And it should be extensible, of course. With a dialect of LISP! We could call it "emacs".
- TeMPOraL 8y agoHah, my first thought when I saw this - looks awesome, but I want to have less standalone programs in my workflow, not more. More than half of those things I already do within Emacs, all it needs is a little bit of elisp to set it up as a dashboard...
- deleted 8y ago[deleted]
- dspillett 8y agoSuch things existed in the pre-GUI-everywhere days: https://en.wikipedia.org/wiki/DESQview https://en.wikipedia.org/wiki/DESQview is probably the most well known example. If you are not wanting a full windowing OS (just a windowing display) then https://en.wikipedia.org/wiki/Tmux https://en.wikipedia.org/wiki/Tmux may do the job for you in unix-a-like environments, with or without https://en.wikipedia.org/wiki/Byobu_(software) https://en.wikipedia.org/wiki/Byobu_(software). In fact I sometimes have several log monitoring windows open in one tmux screen, essentially a dashboard like this and you describe. Done this way all that is running is console applications: almost any existing console application can work well and there is no need for extra development to interface a new windowing API. You could use an existing CUI/TUI library to write such a condole-based windowing system, if tmux/similar don't quite do what you are looking for. For example https://github.com/chjj/blessed https://github.com/chjj/blessed if node.js is your bag. Similar libraries exist for other languages too (go, .net, ...) - search for "Terminal UI <language>" or "Console UI <language>" and options should pop up.