- Cooked mode
Cooked mode is a mode of a terminal or
pseudo terminal character device inUnix-like systems in which data is preprocessed before being given to a program. In this mode the system interprets special characters such asbackspace , delete and othercontrol characters such asControl-C andControl-D . The precise definition of what constitutes a cooked mode isOperating 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 “ABC
D” 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, theterminal 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 anysystem that does some amount ofpreprocessing [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 modesReferences
Wikimedia Foundation. 2010.