- Text user interface
TUI short for: Text User Interface or "Textual User Interface" (and sometimes "Terminal User Interface"), is a
retronym that was coined sometime after the invention ofgraphical user interface s, to distinguish them from text baseduser interface s. TUIs are different fromcommand-line interface s in that, like GUIs, they use the entire screen area and do not necessarily provide line-by-line output. However, TUIs only use text and symbols available on a typicaltext terminal , while GUIs typically use high resolution graphics modes.TUI on ANSI-compatible terminals
ANSI standard
ANSI X3.64 defines a standard set ofescape sequence s that can be used to drive terminals to create TUIs (seeANSI escape code .) However, not all terminals follow this standard, and many non-compatible but functionally equivalent sequences exist.TUI under MS-DOS and Microsoft Windows
On
IBM PC s and compatibles, theBIOS andMS-DOS system calls provide a way of writing text on the screen, and theANSI.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.Most often those programs used blue background for the main screen, with white or yellow characters, although commonly they had also user color customization. Later, the interface became deeply influenced by
GUI s, addingpull-down menu s anddialog box es. Soon mouse input was added (even at graphical resolution in some cases thanks to the ability of the EGA and VGA display adapters to redefine the text character shapes by software), providing additional functionality.Some notable programs of this kind were
Microsoft Word ,MS-DOS Shell ,WordPerfect ,Norton Commander ,Borland Turbo C (which included the conio library),Lotus 1-2-3 and many others. Some of these interfaces survive even during theMicrosoft Windows 3."x" age in the first1990 's; for example, theMicrosoft C 6.0 compiler, employed to write trueGUI programs under16-bit MS Windows, still features its own TUI.Since the beginning,
Microsoft Windows includes a console for displaying MS-DOS software. Later versions added theWin32 console as a native interface for command line and TUI programs. The console usually opens in window mode, but it can be switched to full true text mode screen and vice versa by pressing the Alt and Enter keys together.TUI under Unix-like systems
In
Unix-like operating systems, TUIs are often constructed using the terminal control library "curses", or "ncurses ", a mostly compatible library.The advent of the "curses" library with Berkeley Unix created a portable and stable API for which to write TUIs. The ability to talk to various
text terminal types using the same interfaces led to more widespread use of "visual" Unix programs, which occupied the entire terminal screen instead of using a simple line interface. This can be seen intext editor s such asvi , mail clients such as pine or mutt, system management tools such as SMIT or SAM, andweb browser s such as lynx. Some applications, such asw3m , as well as older versions of pine andvi use the less-capabletermcap library, performing many of the functions associated with curses within the application.In addition, the rise in popularity of
Linux brought many former MS-DOS users to a Unix-like platform, which has fostered an MS-DOS influence in many TUIs. The programminicom , for example, is modeled after the popular MS-DOS programTelix . Some other TUI programs, such as the Twin desktop, wereported over.The proprietary
Mac OS X text editor BBEdit includes a 'shell worksheet' function that works as a full-screen shell window.Other TUIs
* The
full screen editor of theCommodore 8-bit computers was advanced in its market segment for its time. Users could move the cursor over the entire screen area, entering and editingBASIC program lines, as well asdirect mode commands.
* Apple'sMacintosh Programmer's Workshop programming environment included Commando, a TUI shell. It was the inspiration for BBEdit's shell worksheet.ee also
*
SMG$
*Text terminal for the computer interface of textual programs
*Text mode
*Text mode demos
*Command-line interface
*Console application
*Turbo Vision
*ncurses
*PDCurses
*Roguelike , a type of game typically using a TUI
Wikimedia Foundation. 2010.