version 1.7, 2014/07/19 23:50:38 |
version 1.8, 2014/07/20 06:24:19 |
|
|
* initialize the terminal data structures. |
* initialize the terminal data structures. |
*/ |
*/ |
|
|
void |
void |
init_terminal() |
init_terminal() |
{ |
{ |
if (ring_init(&ttyoring, ttyobuf, sizeof ttyobuf) != 1) { |
ring_init(&ttyoring, ttyobuf, sizeof ttyobuf); |
exit(1); |
ring_init(&ttyiring, ttyibuf, sizeof ttyibuf); |
} |
autoflush = TerminalAutoFlush(); |
if (ring_init(&ttyiring, ttyibuf, sizeof ttyibuf) != 1) { |
|
exit(1); |
|
} |
|
autoflush = TerminalAutoFlush(); |
|
} |
} |
|
|
|
|