Text mode

Text mode is a kind of computer display mode in which the content of the screen is internally represented in terms of characters rather than individual pixels. Typically, the screen consists of a uniform rectangular grid of character cells, each of which contains one of the characters of a character set. Text mode is contrasted to all points addressable (APA) mode or other kinds of computer graphics modes.

Text mode video rendering came to prominence in the early 1970s, when video-oriented text terminals started to replace teleprinters in the interactive use of computers.

Text mode applications communicate with the user with command-line interfaces and text user interfaces. Many character sets used in text mode applications also contain a limited set of predefined semi-graphical characters usable for drawing boxes, and other rudimentary graphics which can be used to highlight the content or to simulate widget or control interface objects found in GUI programs. A typical example is the IBM code page 437 character set.

The advantages of text modes as compared to graphics modes include lower memory consumption and faster screen manipulation. At the time text terminals were replacing teleprinters in the 1970s, the extremely high cost of random access memory in that period made it exorbitantly expensive to install enough memory for a computer to simultaneously store the current value of every pixel on a screen (the first Macintosh was groundbreaking and very expensive because it attempted to do precisely that). Text mode avoids the problem of expensive memory by having dedicated display hardware re-render each line of text from characters into pixels with each scan of the screen by the cathode ray.[dubious ] In turn, the display hardware needs only enough memory to store the pixels equivalent to one line of text (or even less) at a time. Thus, the computer only stores and knows about the underlying text characters (hence the name "text mode") and the only location where the actual pixels representing those characters exist as a single unified image is the screen itself, as viewed by the user.

In addition, text mode applications have relatively low bandwidth requirements in remote terminal use. An obvious disadvantage of text mode is the restricted screen content.

An important characteristic of text mode programs is that they assume monospace fonts, where every character has the same width on screen, which allows to easily maintain the vertical alignment when displaying semi-graphical characters. This was an analogy of early mechanical printers which had fixed pitch (teleprinters and daisy wheel printers, etc.). This way, the output seen on the screen could be sent directly to the printer maintaining exactly the same format..

Depending on the environment, the screen buffer can be directly addressable. Programs that display output on remote video terminals must issue special control sequences to manipulate the screen buffer. The most popular standards for such control sequences are ANSI and VT100.

Programs accessing the screen buffer through control sequences may lose synchronization with the actual display, so that many text mode programs have a redisplay everything command, often associated with the Ctrl-L key combination.

Norton Utilities 6.01, an example of advanced TUI which redefines the character set to show tiny graphical widgets, icons and an arrow pointer in text mode.

The border between text mode and graphical programs can sometimes be fuzzy, especially on the PC's VGA hardware, because many later text mode programs tried to push the model to the extreme by playing with the video controller. For example, they redefined the character set in order to create custom semi-graphical characters, or even created the appearance of a graphical mouse by redefining the appearance of the characters over which the mouse was shown at a given time.

Text mode rendering with user-defined characters has also been useful for 2D computer and video games because the game screen can be manipulated much faster than with pixel-oriented rendering.

Many modern programs with a graphical interface simulate the display style of text mode programs, notably when it is important to preserve the vertical alignment of text, e.g., during computer programming. There exist also software components to emulate text mode, such as terminal emulators or command line consoles. In Microsoft Windows, the Win32 console usually opens in emulated, graphical window mode it can be switched to full screen, true text mode and vice versa by pressing the Alt and Enter keys together (this is no longer supported in Windows 7[citation needed]).

Linux virtual console operates in text mode. Most Linux distributions support several virtual console screens, accessed by pressing Ctrl, Alt and a function key together.

Contents

Technical basis

A video controller implementing a text mode usually uses two distinct areas of memory. Character memory or a pattern table contains a raster font in use, where each character is represented by a dot matrix (a matrix of bits), so the character memory could be considered as a three-dimensional bit array. Display matrix (a text buffer, screen buffer, or nametable) tracks which character is in each cell. In the simple case the display matrix can be just a matrix of code points (so named character pointer table), but it usually stores for each character position not only a code, but also attributes.

L\C 0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
1
0
0
1
1
0
0
0
1
1
1
00000000
11111111
00001111
00110011
01010101
11…
00…
00…
00…
01…
00000          
00001        
00010    
00011    
00100    
00101            
00110        
00111                
01000
01001
… … …
Character generator scheme.svg
A sample of character box and corresponding electronic scheme. The glyph is 8×8 pixels, with 3-bit low parts of scan line and dot counter. The screen is between 20×18 and 32×32 character cells, with 5-bit indices.

In the case of raster scan output, which is the most common for computer monitors, the corresponding video signal is made by the character generator, a special electronic unit similar to devices with the same name used in video technology. The video controller has two registers: scan line counter and dot counter, serving as coordinates in the screen dot matrix. Each of them must be divided by corresponding glyph size to obtain an index in the display matrix; the remainder is an index in glyph matrix. If glyph size equals to 2n, then it is possible just to use n low bits of a binary register as an index in glyph matrix, and the rest of bits as an index in the display matrix — see the scheme.

The character memory resides in a read-only memory in some systems. Other systems allow the use of RAM for this purpose, making it possible to redefine the typeface and even the character set for application-specific purposes. The use of RAM-based characters also facilitates some special techniques, such as the implementation of a pixel-graphics frame buffer by reserving some characters for a bitmap and writing pixels directly to their corresponding character memory. In some historical graphics chips, including the TMS9918, the MOS Technology VIC, and the Game Boy graphics hardware, this was actually the canonical way of doing pixel graphics.

Text modes often assign attributes to the displayed characters. For example, the VT100 terminal allows each character to be underlined, brightened, blinking or inverse. Color-supporting devices usually allow the color of each character, and often the background color as well, to be selected from a limited palette of colors. These attributes can either coexist with the character indices or use a different memory area called color memory or attribute memory.

Some text mode implementations also have the concept of line attributes. For example, the VT100-compatible line of text terminals supports the doubling of the width and height of the characters on individual text lines.

PC common text modes

Depending on the graphics adapter used, a variety of text modes are available on IBM PC compatible computers. They are listed on the table below:

Text res. Char. size Graphics res. Colors Adapters
80×25 9×14 720×350 B&W Text MDA, Hercules
40×25 8×8 320×200 16 colors CGA, EGA
80×25 8×8 640×200 16 colors CGA, EGA
80×25 8×14 640×350 16 colors EGA
80×43 8×8 640×350 16 colors EGA
80×25 9×16 720×400 16 colors VGA
80×30 8×16 640×480 16 colors VGA
80×50 9×8 720×400 16 colors VGA
80×60 16 colors VESA-compatible Super VGA
132×25 16 colors VESA-compatible Super VGA
132×43 16 colors VESA-compatible Super VGA
132×50 16 colors VESA-compatible Super VGA
132×60 16 colors VESA-compatible Super VGA

MDA text could be emphasized with bright, underline, reverse and blinking attributes.

Video cards in general are backward compatible, i.e. EGA supports all MDA and CGA modes, VGA supports MDA, CGA and EGA modes.

By far the most common text mode used in DOS environments, and initial Windows consoles, is the default 80 columns by 25 rows, or 80×25, with 16 colors. This mode was available on practically all IBM and compatible personal computers. All 80×25 modes also had a virtual 80×24 mode, used by some applications that needed a status bar on the last row, like terminal emulators. In reality, it was the same 80×25 mode, but restrained by software[clarification needed] to make the last row inaccessible.

Two other VGA text modes, 90×43 and 90×50, exist but were very rarely used. The 40-column text modes were never very popular outside games and other applications designed for compatibility with television monitors, and were used only for demonstration purposes or with very old hardware.

Character sizes and graphical resolutions for the extended VESA-compatible Super VGA text modes are manufacturer-dependent. Also on these display adapters, available colors can be halved from 16 to 8 when a second customized character set is employed (giving a total repertoire of 512 —instead the common 256— different graphic characters simultaneously displayed on the screen).

Some cards (e.g. S3) supported custom very large text modes, like 100×37 or even 160×120. In Linux systems, a program called SVGATextMode is often used with SVGA cards to set up very large console text modes.

See also

External links


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Text Mode —   [engl.], Textmodus …   Universal-Lexikon

  • text mode — tekstinė veiksena statusas T sritis informatika apibrėžtis Duomenų apdorojimo arba persiuntimo veiksena tariant, kad duomenys yra ↑tekstas. Dėl to, kad tekste nėra ↑valdymo kodų, išskyrus keletą, susijusių su teksto išdėstymu, apdorojimas arba… …   Enciklopedinis kompiuterijos žodynas

  • text mode — tekstinė veiksena statusas T sritis informatika apibrėžtis Duomenų vaizdavimas kompiuterio ekrane vien grynojo teksto ženklais (vienodu šriftu, be grafikos elementų). Tokią veikseną turi, pavyzdžiui, hiperteksto rašyklės. Operacinėse sistemose,… …   Enciklopedinis kompiuterijos žodynas

  • text mode — teksto režimas statusas T sritis automatika atitikmenys: angl. text mode vok. Textmodus, m rus. текстовой режим, m pranc. mode de texte, m …   Automatikos terminų žodynas

  • text mode —    A mode in which the computer displays characters on the screen using the built in character set, but does not show any graphics characters or a mouse pointer. Also known as character mode …   Dictionary of networking

  • text mode — state of a graphics card in which only text characters are displayed and does not display graphics …   English contemporary dictionary

  • Text mode — Способ оформления текста (напр. на экране дисплея) …   Краткий толковый словарь по полиграфии

  • Text mode demos — are real time calculated computer animations which make use of the native text graphic mode(s) common on the IBM PC compatibles. The Text Mode Demo Scene is one of many different facets of the demoscene.Text Mode as a medium offers several unique …   Wikipedia

  • Text Mode Demo Contest — (TMDC) is a semi annual text mode demo competition organized by tAAt ry and held over the internet. The inherent limitations of text mode graphics create unique challenges for demosceners. To help promote the event, a text mode invitation demo is …   Wikipedia

  • Mode (statistics) — In statistics, the mode is the value that occurs most frequently in a data set or a probability distribution.[1] In some fields, notably education, sample data are often called scores, and the sample mode is known as the modal score.[2] Like the… …   Wikipedia


Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.