Hacker News new | ask | show | jobs
by cryptonector 59 days ago
> What would you say are the merits of the terminal that a TUI encapsulates?

GUI scripting is still not a thing today. That's the biggest issue with GUIs.

Plus the mouse is genuinely bad for ergonomics.

Plus if you type _fast_ then TUIs are a great starting point.

Plus what's the equivalent of scrollback for a bunch of mouse clicks?

Plus TUIs are much more I/O efficient, which means running them over ssh/mosh/whatever is a great option.

Plus the shell is a programming language -- the GUI isn't just hard to macro-record/script: it doesn't even have a programming language you'd use for that.

1 comments

I think the only point you made which is necessarily TUI-specific is the I/O efficiency / ssh point. Everything else is just a tendency of TUIs vs GUIs, but there's nothing preventing you from making a keyboard-centric GUI with no mouse support and built-in Bash scripting, or whatever scripting.
> Everything else is just a tendency of TUIs vs GUIs, but there's nothing preventing you from making a keyboard-centric GUI with no mouse support and built-in Bash scripting, or whatever scripting.

It has been 40+ years of graphical interfaces (58 if you include that Stanford Research Institute "mother of all demos" video). It's been about 10-20 years more for ttys, and TUIs in the form of screen editors go back to the mid-60s IIUC. Shells w/ tty interfaces go back to the mid-60s also.

So TUIs don't have that big a lead over GUIs, and clearly people take well to GUIs.

So maybe -just maybe- there is something about GUIs that makes them difficult to script.

IMO the bandwidth point is important, but not essential. Windows has had a high bandwidth local GUI since ~1990, and we've had RDP and such things be practical for remote access for about 20 years (i.e., since we started getting high-bandwidth networking to homes). In that entire time Microsoft and its developer ecosystem failed utterly to produce any sort of realistically useful and used GUI scripting or even just macro environment -- that stuff never materialized. There have been _attempts_, but none successful.

I believe the issue is a lot like web scraping vs. APIs. If you provide APIs, you can script those, no browser or GUI needed. But APIs are in short supply because:

  - GUIs come first

  - APIs require backwards-compatibility
    (which is a pain for the vendor)

  - [web-specific] APIs steal engagement
    (which is a problem for sites that
     depend on advertising)
That is a perennial problem for GUIs and BUIs, and it seems like it might be inherent to them, for how else to explain that this problem is never fixed? And yeah, scraping is not a good answer.

That's my 5-minute thesis. Expect the TUI to remain king for a while now that it's been reinvigorated.

Except, now that frontend design is now something an LLM can just shit out a reasonable looking webapp with buttons to click on your phone, why use a terminal? Sure, a GUI is never going to have the absolute composability of kubectl | grep that a shell has, but at the end of the day I want to click on the button and have it do the thing. I expect that because smartphones are terrible for running ssh from, that, with our new codegen powers, we'll see some innovation in that particular space. I don't want to hunt and peck on my phone's keyboard to ls and cd, but a TUI over ssh that I can use my touchscreen emulating mouse clicks on may be the sweet spot.