In a massive step towards more usability, I've added editline
support to the repl.
This means that up-arrow and down-arrow work to scroll through history
as you would expect from other shells. And emacs-like keybindings
are available: ctrl-a, ctrl-e, ctrl-k, ctrl-y, etc do what you expected (goto
beginning of line, goto end of line, cut to end of line, yank last cut, etc).
libeditline is a non-gpl (it is bsd licensed) replacement for gnu readline.
http://sourceforge.net/projects/libedit/These changes are in the latest on the prepurgedanglers branch (37a91a8), but aren't yet
integrated into the the Makefile, because I need some pointers on how
to add a third party C library to the make system. Currently the libedit.so
is built manually, detailed below. Currently the libeditline files are in
crack-language/wisecrack/libedit.
#
# notes on building the latest prepurgedanglers branch (37a91a8),
# that incorporates lib editline.
#
git clone
https://github.com/glycerine/crack-language.gitcd crack-language
git checkout prepurgedanglers
cd wisecrack/libedit
CFLAGS=-fpic ./configure
make
cp libedit.so ../..
# now we can build crack as usual...
cd ../.. # get to the crack-language/ directory
./bootstrap
LIBS=-ledit ./configure
make
Best,
Jason