Cooked mode

Cooked mode

Cooked mode is a mode of a terminal or pseudo terminal character device in Unix-like systems in which data is preprocessed before being given to a program. In this mode the system interprets special characters such as backspace, delete and other control characters such as Control-C and Control-D. The precise definition of what constitutes a cooked mode is Operating System Specific [ [http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Terminal-Mode.html Terminal Mode - MIT/GNU Scheme 7.7.90 ] ] . The other mode is “raw mode” in which the data is given as-is to the program, the system does not interpret any of the special characters.

For example, if “ABCD” is given as an input to a program through a terminal character device in cooked mode, the program gets “ABD”. But, if the terminal is in raw mode, the program gets the characters “ABC” followed by the Backspace character and followed by “D”. In cooked mode, the terminal line discipline processes the characters “ABCD” and presents only the result (“ABD”) to the program.

Technically, the term “cooked mode” should be associated only with streams that have a terminal line discipline, but generally it is applied to any system that does some amount of preprocessing [cite web|title=Cooked mode from FOLDOC|url=http://foldoc.org/index.cgi?query=cooked+mode&action=Search] .

See also

* Rare mode
* Terminal emulator
* Serial communications
* Chapter of the "Wikibook"
* Command and Data modes

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • cooked mode — noun In computing, the mode of a device driver in which input data is processed or preprocessed. Ant: raw mode See Also: rare mode …   Wiktionary

  • Cbreak mode — (sometimes called rare mode) is a mode of a terminal or pseudo terminal character device in Unix like systems, between raw mode and cooked mode. Unlike cooked mode it works with single characters at a time, rather than forcing a wait for a whole… …   Wikipedia

  • Shabbat mode — Sabbath mode is a feature in many modern appliances, including ovens and refrigerators which is intended to allow the appliances to be used (subject to various constraints) by Sabbath observant Jews on the Sabbath and Jewish holidays.One of the… …   Wikipedia

  • Sabbath mode — n. A feature that enables an oven to stay on for extended periods such as the Jewish Sabbath to keep pre cooked foods hot. Example Citation: With the Sabbath Mode override, ovens will not shut off automatically, making it possible to keep cooked… …   New words

  • Boeuf à la mode — ( beef in the style ) is a French version of what is often known in the United States as pot roast. It is a way to prepare a tougher cut of beef (rich in connective tissue, and in older recipes often lardoned). The dish is prepared by first… …   Wikipedia

  • POSIX terminal interface — The POSIX terminal interface is the generalized abstraction, comprising both an Application Programming Interface for programs, and a set of behavioural expectations for users of a terminal, as defined by the POSIX standard and the Single Unix… …   Wikipedia

  • List of French words and phrases used by English speakers — Here are some examples of French words and phrases used by English speakers. English contains many words of French origin, such as art, collage, competition, force, machine, police, publicity, role, routine, table, and many other Anglicized… …   Wikipedia

  • Jewish cuisine — is a collection of international cookery traditions linked by Jewish dietary laws (kashrus) and Jewish holiday traditions. Certain foods, notably pork and shellfish, are forbidden; meat and dairy are not combined, and meat must be ritually… …   Wikipedia

  • sacrifice — sacrificeable, adj. sacrificer, n. /sak reuh fuys /, n., v., sacrificed, sacrificing. n. 1. the offering of animal, plant, or human life or of some material possession to a deity, as in propitiation or homage. 2. the person, animal, or thing so… …   Universalium

  • Durian — For other uses, see Durian (disambiguation). Durian Durio kutejensis fruits, also known as durian merah Scientific classification …   Wikipedia

Share the article and excerpts

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