this post was submitted on 11 Aug 2023
788 points (95.4% liked)

linuxmemes

20688 readers
1233 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

CUI was me messing up. I meant TUI (text user interface).

The command line interface (CLI) is the original TUI and is always prompt and response. You're prompted for a command, you type it in and then the computer spits out the answer below.

The original CLI were printed on a teletype machine before there were videoterminals. So if your TUI has a real typewriter-kind-of-experience, that's a CLI. So even something like cowsay is CLI.

TUI is a more broadly encompassing term. This includes CLI, but also programs that display text or text like lines all over the screen. The popular library ncurses is generally used to make these programs. Popular examples would be vim, or emacs, or htop, things like that.

A very simple example of a non-CLI TUI program is less. It lets you pipe output of a CLI command into it so that it can be scrolled without using only the screen buffer.

[Edit] "Console" is a pretty unique term. Back when a computer took up an entire room, the console was the table that the computer operator sat at. Some of the earliest WWII era computers, a console might have just had a panel with indicator lights and you primarily interacted with the punchcard interface.

But eventually, the teletype machine or videoterminal sat on the console table. So doing something "at the console" became slang for using CLI and the terms began to be used interchangeably.

And if you want to go deeper into the weeds, there are still console table furniture you can buy for non-computer usages. Basically a console table is a kind of narrow side table you find near a door. Originally most of these tables included front legs made of "consoles" which is an ancient greek corbel (architecture element) that is shaped like a scroll.