M BUZZ CRAZE NEWS
// general

Are there differences between CLI and TUI?

By Jessica Wood

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?

3

3 Answers

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.

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).

6

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy