<s>
A	O
terminal	B-Operating_System
mode	I-Operating_System
is	O
one	O
of	O
a	O
set	O
of	O
possible	O
states	O
of	O
a	O
terminal	B-General_Concept
or	O
pseudo	B-Protocol
terminal	I-Protocol
character	O
device	O
in	O
Unix-like	B-Operating_System
systems	I-Operating_System
and	O
determines	O
how	O
characters	O
written	O
to	O
the	O
terminal	B-General_Concept
are	O
interpreted	O
.	O
</s>
<s>
In	O
cooked	B-Operating_System
mode	I-Operating_System
data	O
is	O
preprocessed	B-General_Concept
before	O
being	O
given	O
to	O
a	O
program	O
,	O
while	O
raw	O
mode	O
passes	O
the	O
data	O
as-is	O
to	O
the	O
program	O
without	O
interpreting	O
any	O
of	O
the	O
special	O
characters	O
.	O
</s>
<s>
The	O
system	O
intercepts	O
special	O
characters	O
in	O
cooked	B-Operating_System
mode	I-Operating_System
and	O
interprets	O
special	O
meaning	O
from	O
them	O
.	O
</s>
<s>
Backspace	B-Device
,	O
delete	B-Device
,	O
and	O
Control-D	O
are	O
typically	O
used	O
to	O
enable	O
line-editing	B-Application
for	O
the	O
input	O
to	O
the	O
running	O
programs	O
,	O
and	O
other	O
control	O
characters	O
such	O
as	O
Control-C	B-Device
and	O
Control-Z	O
are	O
used	O
for	O
job	B-Operating_System
control	I-Operating_System
or	O
associated	O
with	O
other	O
signals	O
.	O
</s>
<s>
The	O
precise	O
definition	O
of	O
what	O
constitutes	O
a	O
cooked	B-Operating_System
mode	I-Operating_System
is	O
operating	O
system-specific	O
.	O
</s>
<s>
For	O
example	O
,	O
if	O
“	O
ABC	O
<	O
Backspace>D	O
”	O
is	O
given	O
as	O
an	O
input	O
to	O
a	O
program	O
through	O
a	O
terminal	B-General_Concept
character	O
device	O
in	O
cooked	B-Operating_System
mode	I-Operating_System
,	O
the	O
program	O
gets	O
“	O
ABD	O
”	O
.	O
</s>
<s>
But	O
,	O
if	O
the	O
terminal	B-General_Concept
is	O
in	O
raw	O
mode	O
,	O
the	O
program	O
gets	O
the	O
characters	O
“	O
ABC	O
”	O
followed	O
by	O
the	O
Backspace	B-Device
character	I-Device
and	O
followed	O
by	O
“	O
D	O
”	O
.	O
</s>
<s>
In	O
cooked	B-Operating_System
mode	I-Operating_System
,	O
the	O
terminal	B-Operating_System
line	I-Operating_System
discipline	I-Operating_System
processes	O
the	O
characters	O
“	O
ABC	O
<	O
Backspace>D	O
”	O
and	O
presents	O
only	O
the	O
result	O
(	O
“	O
ABD	O
”	O
)	O
to	O
the	O
program	O
.	O
</s>
<s>
Technically	O
,	O
the	O
term	O
“	O
cooked	B-Operating_System
mode	I-Operating_System
”	O
should	O
be	O
associated	O
only	O
with	O
streams	B-Architecture
that	O
have	O
a	O
terminal	B-Operating_System
line	I-Operating_System
discipline	I-Operating_System
,	O
but	O
generally	O
it	O
is	O
applied	O
to	O
any	O
system	O
that	O
does	O
some	O
amount	O
of	O
preprocessing	O
.	O
</s>
<s>
cbreak	B-Operating_System
mode	I-Operating_System
(	O
sometimes	O
called	O
rare	B-Operating_System
mode	I-Operating_System
)	O
is	O
a	O
mode	O
between	O
raw	O
mode	O
and	O
cooked	B-Operating_System
mode	I-Operating_System
.	O
</s>
<s>
Unlike	O
cooked	B-Operating_System
mode	I-Operating_System
it	O
works	O
with	O
single	O
characters	O
at	O
a	O
time	O
,	O
rather	O
than	O
forcing	O
a	O
wait	O
for	O
a	O
whole	O
line	O
and	O
then	O
feeding	O
the	O
line	O
in	O
all	O
at	O
once	O
.	O
</s>
<s>
Unlike	O
raw	O
mode	O
,	O
keystrokes	O
like	O
abort	O
(	O
usually	O
Control-C	B-Device
)	O
are	O
still	O
processed	O
by	O
the	O
terminal	B-General_Concept
and	O
will	O
interrupt	O
the	O
process	O
.	O
</s>
