Text user interface
|
TUI (Text User Interface) is a retronym that was coined sometime after the invention of graphical user interfaces, to distinguish them from text based user interfaces. TUIs are different from command-line interfaces in that, like GUIs, they utilise the entire screen area and do not necessarily provide line-by-line output. However, TUIs only use text and symbols available on a typical text terminal, while GUIs typically use high resolution graphics modes.
In the Unix world, TUIs are often constructed using (n)curses.
ANSI standard ANSI X3.64 defines a standard set of escape sequences that can be used to drive terminals to create TUIs.
TUI under MS-DOS
On IBM PCs, the BIOS and MS-DOS system calls provide a way of writing text on the screen, and the ANSI.SYS driver could process standard ANSI escape sequences. However, programmers soon learned that writing data directly to the screen buffer was much faster, as well as being much simpler to program and less error-prone. This change in programming technique resulted in a large number of MS-DOS TUI programs. Some notable programs of this kind were Microsoft Word, MS-DOS Shell, WordPerfect, Norton Commander, Turbo C, and many others. Most often those programs used blue background for the main screen, with white or yellow characters. Soon mouse input was added, providing additional functionality. Later, the interface became deeply influenced by GUIs, adding pull-down menus and dialog boxes.
TUI under Win32
Today Microsoft Windows includes Win32 console as a convenient interface for TUI programs. However, most console applications under Win32 are command-line tools. One notable full-screen TUI program for Win32 is FAR Manager (a clone of Norton Commander).