Skip to content
Snippets Groups Projects
Commit 49bd9af7 authored by deuce's avatar deuce
Browse files

Add cfmakeraw() if required.

parent df683fd5
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,18 @@ tODKeySequence aKeySequences[] =
{"",0}
};
#ifdef NEEDS_CFMAKERAW
void
cfmakeraw(struct termios *t)
{
t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_oflag &= ~OPOST;
t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
t->c_cflag &= ~(CSIZE|PARENB);
t->c_cflag |= CS8;
}
#endif
void ansi_sendch(char ch)
{
if(!ch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment