version 1.12, 2014/07/20 12:08:55 |
version 1.13, 2014/07/22 07:30:24 |
|
|
*/ |
*/ |
|
|
void |
void |
init_terminal() |
init_terminal(void) |
{ |
{ |
struct termios tc; |
struct termios tc; |
|
|
|
|
autoflush = (tc.c_lflag & NOFLSH) == 0; |
autoflush = (tc.c_lflag & NOFLSH) == 0; |
} |
} |
|
|
|
|
/* |
/* |
* Send as much data as possible to the terminal. |
* Send as much data as possible to the terminal. |
* |
* |
|
|
* n: All data - n was written out. |
* n: All data - n was written out. |
*/ |
*/ |
|
|
|
int |
int |
ttyflush(int drop) |
ttyflush(drop) |
|
int drop; |
|
{ |
{ |
int n, n0, n1; |
int n, n0, n1; |
|
|
|
|
* of various global variables). |
* of various global variables). |
*/ |
*/ |
|
|
|
int |
int |
getconnmode(void) |
getconnmode() |
|
{ |
{ |
int mode = 0; |
int mode = 0; |
|
|
|
|
return(mode); |
return(mode); |
} |
} |
|
|
void |
void |
setconnmode(force) |
setconnmode(int force) |
int force; |
|
{ |
{ |
int newmode; |
int newmode; |
|
|
|
|
TerminalNewMode(newmode); |
TerminalNewMode(newmode); |
} |
} |
|
|
|
void |
void |
setcommandmode(void) |
setcommandmode() |
|
{ |
{ |
TerminalNewMode(-1); |
TerminalNewMode(-1); |
} |
} |