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>
o Bump minor version for release
o Update maintainer email address
o Change to tar.xz for archive distribution
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Remove all old $Id:$ and similar constructs, they don't provide any
additional benefit anymore.
Add configure options for toggling terminal bell and toying with
SIGSTOP using Ctrl-Z. Rename config option for ANSI keys to get
a consistent namespace.
Also did some work on ANSI-fication of function definitions, lot's
of that was still lingering around.
the library name, from libedit.a to libeditline.a
Bump version to 1.13.0 to better illustrate it has the same heritage
as the Debian version.
Import the debian/ directory from editline-1.12-5.
Yes, this is a major changeset. :)
Add configure support for ANSI arrow keys.
Tested OK with gnome-terminal.
src/complete.c:
Remove usage of CONST and refactor compare() to use standard
C syntax instead of old K&R.
rl_complete() and rl_list_possib(). Simply leave out complete.o from
the default build and in all programs require these two functions to
be supplied.
A better alternative would be to use function pointers and check those
for NULL in the running code. With this code, and no completion handler
the editline code will die.
=====================
Fix Debian batch mode reader, read_redirected(), which is activated
when input comes from a file rather than a tty.
The implementation of read_redirected() did not support lines longer
than 64 chars. It tried to realloc(), but goofed up and instead
truncated all the first 64 chars. The result was that each read
line only contained the reminder of a a division with 64... :-)
to work better on embedded targets running off the initial console.
Also, first merge of patches from Debian. This part holds all of the
sysunix.c changes and some 8-bit patches and SIGSTP patches in the
editline.c file.
=====================
Fix another build warning for Arm cross-gcc, which actually was v4.1.2
This time getpid() was missing unistd.h, but kill() was also missing
signal.h. Added test for signal.h, but left out unistd.h since we
already define SYS_UNIX -- which we should really check for instead...
The rest are cosmetic prototype or automake/autoconf fixes.
=====================
Don't use AC_FUNC_MALLOC/REALLOC to check for malloc()/realloc() this seems to
confuse not only AIX but also embedded targets using uClibc (Snapgear). Instead
we now check for malloc.h and include that in the internal editline.h
=====================
Lots of minor fixes and additions:
* Bump version info in configure.ac
* User editline.h added, installs to $prefix/include/editline.h
- Based on Debian package version, but heavily updated.
* Manpage installs to $prefix/share/man/man3/editline.3
- Also slightly updated with contents from Debian package.
* Revised README to mention existing Debian package, also cleaned
out the old README, which now lives in doc/README
* Add TODO file.
* Fix package description and make dist to bzip2 tarballs.