editline/examples
Joachim Nilsson 6a8556733a Add support for disabling default SIGINT and EOF behavior.
This patch adds support for `--disable-eof` and `--disable-sigint` to
the Editline configure script.  With either of these two switches the
`tty_special()` function bypasses the special TTY checks making it
possible to bind Ctrl-C and Ctrl-D to custom callbacks.  This can be
useful if you want to emulate a Cisco style CLI rather than traditional
UNIX.

The user can of course also redefine the VINTR and VEOF special terminal
control characters, but these configure script switches may be easier to
use for some.

Also, the CLI example has been updated to bind Ctrl-D, Ctrl-C and Ctrl-Z
for testing purposes.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-04-06 14:53:47 +02:00
..
cli.c Add support for disabling default SIGINT and EOF behavior. 2015-04-06 14:53:47 +02:00
Makefile.am Build examples (tests) as static, for easy debugging. 2010-08-04 02:44:20 +02:00
Makefile.in Cleanup configure.ac and regenerate default configure files. 2013-07-08 16:47:03 +02:00
testit.c Minor cleanup 2010-07-24 02:15:18 +02:00