13

In "Text-based user interface" Wikipedia's article, when talk to text based user interface, the first sentence is:

Not to be confused with Command-line interface.

I can't find some differences between CLI (Command Line Interface) and TUI (Textual User Interface).

Is that true or not?

Pablo Bianchi
  • 17,371
showkey
  • 382

3 Answers3

10

While the two terms are often used interchangeably, they are slightly different, since as RoVo pointed out, command-line is all about successive lines of text, which are commands. Think back to old teletype type of computers, where you could only type in command, and its output would come out on line of teletype paper.

For text user interface, we can reference such tools as Midnight Commander ( and some old folks will also know Norton Commander ) or ncdu or nano. In those you don't necessarily type in lines of commands, but navigate primitive menu made with ncurses library, and guess what. . . .such program uses text as representation of buttons,borders, etc. Take for instance, htop. The way memory and CPU usage bar represented is simply via # and * symbols.

1

You can find the answer in the Wikipedia Article for CLI:

A command-line interface [...] is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines).

pLumo
  • 27,991
1

Reading the link you provided, I find this sentence:

TUIs display computer graphics in text mode. An advanced TUI may, like GUIs, use the entire screen area and accept mouse and other inputs.

And there are some screenshots too, for example of Midnight Commander.

The difference of the definitions is that a TUI is a customized interface with hotkey and mouse inputs, not a shell where you enter a command line, (a command line interface), for example bash, which is used in Ubuntu.

But both are text based interfaces, that need no graphical desktop environment or window manager.

Pablo Bianchi
  • 17,371
sudodus
  • 47,684