Commit 2dc83051 authored by deuce's avatar deuce
Browse files

Use different input modes for jsdoor than jsexec.

parent 3417d591
......@@ -1049,8 +1049,13 @@ int parseLogLevel(const char* p)
#ifdef __unix__
void raw_input(struct termios *t)
{
#ifdef JSDOOR
t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
#else
t->c_iflag &= ~(IMAXBEL|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN);
#endif
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment