Text mode

Text mode is a computer display mode in which content is internally represented on a computer screen 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; at the same time, contrasted to graphics mode or other kinds of computer graphics modes.

Text mode applications communicate with the user by using 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.

An important characteristic of text mode programs is that they assume monospaced fonts, where every character has the same width on screen, which allows them to easily maintain the vertical alignment when displaying semi-graphical characters. This was an analogy of early mechanical printers which had fixed pitch. This way, the output seen on the screen could be sent directly to the printer maintaining 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.

History

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.

Benefits

The advantages of text modes as compared to graphics modes include lower memory consumption and faster screen manipulation.[1] At the time text terminals were beginning to replace 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, to form what would now be called a framebuffer. Early framebuffers were standalone devices which cost tens of thousands of dollars, in addition to the expense of the advanced high-resolution displays to which they were connected.[2] For applications that required simple line graphics but for which the expense of a framebuffer could not be justified, vector displays were a popular workaround. But there were many computer applications (e.g., data entry into a database) for which all that was required was the ability to render ordinary text in a quick and cost-effective fashion to a cathode-ray tube.

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. 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's screen buffer 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 (thanks to the phenomenon of persistence of vision).

For example, a screen buffer sufficient to hold a standard grid of 80 by 25 characters requires at least 2,000 bytes.[1] Assuming a monochrome display, 8 bits per byte, and a standard size of 8 times 8 bits for each character, a framebuffer large enough to hold every pixel on the resulting screen would require at least 128,000 bits, 16,000 bytes, or just under 16 kilobytes. By the standards of modern computers, these may seem like trivial amounts of memory, but to put them in context, the original Apple II was released in 1977 with only four kilobytes of memory and a price of $1,300 in U.S. dollars (at a time when the minimum wage in the United States was only $2.30 per hour). Furthermore, from a business perspective, the business case for text terminals made no sense unless they could be produced and operated more cheaply than the paper-hungry teleprinters they were supposed to replace.

Another advantage of text mode is that it has relatively low bandwidth requirements in remote terminal use. Thus, a text mode remote terminal can necessarily update the screen much faster than a graphics mode remote terminal linked to the same amount of bandwidth (and in turn will seem more responsive), since the remote server may only need to transmit a few dozen bytes for each screen update in text mode, as opposed to complex raster graphics remote procedure calls that may require the transmission and rendering of entire bitmaps.

User-defined characters

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 pointer by redefining the appearance of the characters over which the mouse pointer 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.

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.

C
L
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
… … …

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.[3]

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:[4]

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. Several programs, such as terminal emulators, used only 80×24 for the main display and reserved the bottom row for a status bar.

Two other VGA text modes, 80×43 and 80×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, such as for use with split-screen terminal multiplexers.

Modern usage

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.[5] This is no longer supported by the WDDM display drivers introduced with Windows Vista.[6]

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

The AAlib open source library provides programs and routines that specialize in translating standard image and video files, such as PNG and WMV, and displaying them as a collection of ASCII characters. This enables a rudimentary viewing of graphics files on text mode systems, and on text mode web browsers such as Lynx.

See also

References

  1. ^ a b Bosch, Winn L. (July 1992). "The Perfect PC". PC Magazine. 11 (13): 186. Retrieved 15 December 2015.
  2. ^ Smith, Alvy Ray (2021). A Biography of the Pixel. Cambridge: MIT Press. p. 363. ISBN 9780262365215. Retrieved 1 October 2022. In this book, Smith recalls that his first framebuffer at the New York Institute of Technology Computer Graphics Lab cost $80,000 in the mid-1970s. It could store a 512 x 512 array of pixels at 256 colors per pixel (that is, 8-bit color depth). Alexander Schure soon bought five more framebuffers for the Lab for $60,000 each. The Lab quickly combined its six framebuffers together, in two groups of three each, to create the first two true 24-bit RGB color framebuffers. Thus, the first had cost $200,000 and the second had cost $180,000; as Smith points out, adjusting for inflation, these numbers add up to roughly $1.7 million in 2021 dollars, which explains why the Lab's researchers were "thrilled" with Schure's generosity.
  3. ^ Text mode layout and palette
  4. ^ Text modes on Ralf Browns interrupt list
  5. ^ Windows uses Alt+Enter to make a terminal full screen
  6. ^ "Some 16-bit DOS-based Programs and the Command Prompt will not run in full-screen mode in Windows Vista and in Windows 7".

Further reading

Read other articles:

Artikel ini membahas mengenai bangunan, struktur, infrastruktur, atau kawasan terencana yang sedang dibangun atau akan segera selesai. Informasi di halaman ini bisa berubah setiap saat (tidak jarang perubahan yang besar) seiring dengan penyelesaiannya. Jalan Tol Bangkinang - PekanbaruInformasi ruteDikelola oleh PT Hutama Karya PerseroPanjang:38 km (24 mi)LetakKota besar:Kota BangkinangKamparSistem jalan bebas hambatan Sistem Jalan di Indonesia Jalan Tol Jalan raya Jalan Tol Pekanbaru - Bangki...

 

Artikel ini bukan mengenai Asisten Rumah Tangga. Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Pekerja rumah tangga – berita · surat kabar · buku · cendekiawan · JSTOR Pembantu pribumi di rumah orang Belanda pada tahun 1880-an Poster yang menggambarkan p...

 

2010 single by Akon featuring Keri HilsonOh AfricaSingle by Akon featuring Keri Hilsonfrom the album Listen Up! The Official 2010 FIFA World Cup Album ReleasedJanuary 31, 2010RecordedNovember 2009GenreR&BworldbeatLength3:21LabelInterscopeUniversalSongwriter(s)Timothy ThomasTheron ThomasProducer(s)Alexander PrettyBoiFresh Parhm, JrAkon singles chronology Shut It Down (2009) Oh Africa (2010) Push Push (2010) Keri Hilson singles chronology Million Dollar Girl(2010) Oh Africa(2010) Go...

كيني ميلر (بالإنجليزية: Kenny Miller)‏  معلومات شخصية الميلاد 23 ديسمبر 1979 (العمر 44 سنة)إدنبرة الطول 5 قدم 10 بوصة (1.78 م)[1][1] مركز اللعب مهاجم الجنسية المملكة المتحدة  معلومات النادي النادي الحالي فالكيرك (assistant head coach) مسيرة الشباب سنوات فريق 1988–1996 Lothian Thistle Hutchiso...

 

2015 American resupply spaceflight to the ISS CRS-6 redirects here. For the Orbital ATK CRS-6 mission, see Cygnus CRS OA-6. SpaceX CRS-6The SpaceX CRS-6 Dragon spacecraft as seen from the ISS on 17 April 2015NamesSpX-6Mission typeISS resupplyOperatorSpaceX / NASACOSPAR ID2015-021A SATCAT no.40588Websitehttps://www.spacex.com/Mission duration30 days (planned)36 days, 20 hours, 31 minutes (achieved) Spacecraft propertiesSpacecraftDragon C108Spacecraft typeDragon CRSManufacturerSp...

 

Stasiun Gosannen後三年駅Tampan depan bangunan utama Stasiun Gosannen pada Desember 2012Lokasi107, Higashiyamamoto, Iizume, Misato-cho, Senboku-gun, Akita-ken 019-1234JepangKoordinat39°21′52″N 140°32′18″E / 39.364472°N 140.538472°E / 39.364472; 140.538472Koordinat: 39°21′52″N 140°32′18″E / 39.364472°N 140.538472°E / 39.364472; 140.538472Operator JR EastJalur■ jJalur Utama ŌuLetak234.7 kilometers dari FukushimaJumlah...

Disambiguazione – Se stai cercando altri significati, vedi Maryland (disambigua). Marylandstato federato(EN) State of Maryland (dettagli) (dettagli) Maryland – VedutaBaltimora LocalizzazioneStato Stati Uniti AmministrazioneCapoluogoAnnapolis GovernatoreWes Moore (D) dal 2023 Data di istituzione28 aprile 1788 TerritorioCoordinatedel capoluogo38°58′22″N 76°30′17″W / 38.972778°N 76.504722°W38.972778; -76.504722 (Maryland)Coordinate: 38°58′2...

 

U.S. House district for Arkansas AR 4 redirects here. For the state highway, see Arkansas Highway 4. Arkansas's 4th congressional districtInteractive map of district boundaries since January 3, 2023Representative  Bruce WestermanR–Hot SpringsArea20,951 sq mi (54,260 km2)Distribution66.2% urban33.8% ruralPopulation (2022)751,385[1]Median householdincome$48,035[2]Ethnicity66.8% White19.5% Black7.5% Hispanic4.4% Two or more races0.8% Asian0.6% Native America...

 

Fictional organization MaggiaThe different Maggia families.Attribution unknown, artist Jack KirbyPublication informationPublisherMarvel ComicsFirst appearanceThe Avengers #13 (February 1965)Created byStan Lee (writer)Don Heck (artist)In-story informationType of organizationOrganized crimeAgent(s)Full list Maggia is a fictional international crime syndicate appearing in American comic books published by Marvel Comics. The organization exists in Marvel's main shared universe, known as Earth-616...

AwardEdward Medal Reverse of the Edward Medal (Industry) Class I (left).Reverse of Edward Medal (Mines) Class II (centre).Obverse of the Edward Medal Class II (right).TypeCivilian decorationAwarded forActs of bravery by miners, quarrymen and industrial workers in mines and factory accidents and disasters.Presented byUnited Kingdom and some British Empire/Commonwealth countriesEligibilityUnited Kingdom and British Empire/Commonwealth personnelPost-nominalsEMStatusReplaced by George Cross in 1...

 

Highway in the United States U.S. Route 67US 67 highlighted in redRoute informationLength1,560 mi[citation needed] (2,510 km)Existed1926[citation needed]–presentMajor junctionsSouth end Fed. 16 at the U.S.-Mexico Border at Presidio, TXMajor intersections I-10 / US 285 / US 385 near Fort Stockton, TX I-35W at Alvarado, TX I-20 / I-30 / I-35E / US 77 in Dallas, TX I-30 at Benton, AR I-40 at North Little Rock, AR ...

 

Flashcard software This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) A major contributor to this article appears to have a close connection with its subject. It may require cleanup to comply with Wikipedia's content policies, particularly neutral point of view. Please discuss further on the talk page. (April 2016) (Learn how and when to remove this message)The topic of this article may not...

Contoh paling sederhana mengenai pemanfaatan biomassa untuk mendapatkan energi, adalah pembakaran kayu. Contoh mesin yang mampu mengekstraksi bioenergi dengan teknologi tinggi, menggunakan mesin Stirling yang mampu memanfaatkan panas dari pembakaran biomassa secara efisien Fasilitas pengolahan tebu di Piracicaba, São Paulo yang memanfaatkan limbah bagasse sebagai bahan bakar untuk menghasilkan listrik dan panas Bioenergi adalah energi terbarukan yang didapatkan dari sumber biologis, umumnya ...

 

巨文島在全羅南道的位置 巨文島事件(韩语:거문도사건/巨文島事件),又称汉密尔顿港事件(英语:Port Hamilton incident),是1885年4月15日到1887年2月27日英國皇家海軍攻打朝鲜王朝巨文島(英国人称之为汉密尔顿港)的事件。[1] 背景 英、俄因爲阿富汗边界纠纷险些冲突。俄国兵船聚泊海参崴,英国恐其南下侵擾香港,打算在半路截住俄罗斯海军。[2] 过程 沙俄�...

 

Alcohol in Bangladesh is regulated and restricted in Bangladesh. Bangladesh has one of the lowest alcohol consumption rates in the world according to a World Bank report published in 2015.[1] History The first distillery was set up in what is today Bangladesh in 1887 by an Englishman named Robert Russell Carew. The company was called Carew & Co (Bangladesh) Ltd and it was nationalised by the government of Bangladesh in 1973.[2] The distillery is part of the Darsana Sugar ...

State in southern India Andhra redirects here. For other uses, see Andhra (disambiguation). State in South India, IndiaAndhra PradeshStateFrom top, left to right: Venkateswara temple at Tirumala, Aerial view of Visakhapatnam City, and Dhyana Buddha statue at Amaravati Emblem of Andhra PradeshEtymology: State of AndhrasMotto: Satyameva Jayate (Truth alone triumphs)Anthem: Maa Telugu Thalliki (To Our Mother Telugu)Location of Andhra Pradesh in IndiaCoordinates: 16°31′N 80°31′E...

 

Waris DirieDirie pada 2018Lahir1965 (umur 58–59)Galkayo, SomaliaPekerjaanPeraga busana, aktivis sosial, pengarang, pemeran, Duta Besar Khusus PBB (1997–2003)GelarChevalier Légion d'honneur Waris Dirie (bahasa Somali: Waris Diiriye) (kelahiran 1965) adalah seorang peraga busana, pengarang, pemeran dan aktivis hak asasi manusia Somalia yang berjuang menentang pemotongan kelamin perempuan. Dari 1997 sampai 2003, ia menjadi duta besar khusus PBB melawan pemotongan kelamin perem...

 

此條目已列出參考文獻,但因為沒有文內引註而使來源仍然不明。 (2018年8月28日)请加上合适的文內引註来改善这篇条目。 小笠原归还协定日本国与美利坚合众国关于南方诸岛和其他岛屿的协定條文美国放弃其在南方诸岛的权益,并完全将该地行政、立法、司法上的权力移交给日本。簽署日1968年4月5日(东京)生效日1968年6月26日簽署者佐藤榮作、林登·約翰遜締約方日本、美...

Motor vehicle Isuzu FlorianIsuzu Florian Series IIOverviewManufacturerIsuzu MotorsAlso calledIsuzu Florian E/T/VProduction1967–1983AssemblyFujisawa Plant, Fujisawa, Kanagawa, JapanBody and chassisClassMid-size / large family carBody style4-door sedan5-door station wagonLayoutFront-engine, rear-wheel driveRelatedIsuzu 117 CoupéIsuzu KBPowertrainEngine1.6 L G161 OHV I4 (PA20)1.6 L G161S OHC I4 (PA20)1.8 L G180 OHC I4 (PA30)2.0 L C190 diesel I4 (PAD30)Transmissio...

 

Субару Парк «Субару Парк» в 2010 году Оригинальное название Subaru Park Бывшие названия «Пи-пи-эл Парк» (2010—2015)«Тален Энерджи Стэдиум» (2016—2019) Местоположение 1 Стэдиум Драйв,Честер, Пенсильвания, США Заложен 1 декабря 2008 года Открыт 27 июня 2010 года Стоимость постройки $120 000 000 (2010) �...