diff options
Diffstat (limited to 'readline/examples/rlfe/rlfe.c')
-rw-r--r-- | readline/examples/rlfe/rlfe.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/readline/examples/rlfe/rlfe.c b/readline/examples/rlfe/rlfe.c index eacd5ab..f40b2dd 100644 --- a/readline/examples/rlfe/rlfe.c +++ b/readline/examples/rlfe/rlfe.c @@ -547,7 +547,14 @@ main(int argc, char** argv) #endif t.c_lflag &= ~(ICANON | ISIG | ECHO | ECHOCTL | ECHOE | \ - ECHOK | ECHOKE | ECHONL | ECHOPRT ); + ECHOK | ECHONL +#if defined (ECHOKE) + | ECHOKE +#endif +#if defined (ECHOPRT) + | ECHOPRT +#endif + ); t.c_iflag &= ~ICRNL; t.c_iflag |= IGNBRK; t.c_cc[VMIN] = 1; |