--SHELL:=/bin/bash
- CLM=clm
- CLMFLAGS=-nt -l -lreadline
+ CLM:=clm
+ CLMFLAGS:=-nt -l -lreadline
+ LIBRARYDIR:=Clean\ System\ Files
+ BINARIES:=test
- all: test
+ .PHONY: readline clean
+
+ all: readline $(BINARIES)
+
+ readline:
+ $(MAKE) -C $(LIBRARYDIR)
%: %.icl
$(CLM) $(CLMFLAGS) $(basename $<) -o $@
clean:
- $(RM) -v test Clean\ System\ Files/{ReadLine,test}.*
+ $(MAKE) -C $(LIBRARYDIR) clean
+ $(RM) -v $(BINARIES)
+ $(RM) -v $(addprefix $(LIBRARYDIR)/,$(addsuffix .*,$(BINARIES)))
- Clean readline Version 0.2
+ Clean readline Version 0.3
==========================
ReadLine is a Clean library that allows interactive console programs to use the
```
When you want to use the library in your program you should compile with the
-`-l /usr/lib/libreadline.so` linker flag
+`-l -lreadline` linker flag
All functions try to resemble the original
[readline](http://cnswww.cns.cwru.edu/php/chet/readline/readline.html) and
###Changelog
+ - 0.3 (2016-01-26)
+ - Better build mechanism
+ - Information about the history list functions implemented, not thoroughly
+ tested though.
+ - Fixed issue #1
+ - History state can now be written as well as read
- 0.2 (2016-01-25)
- History file operations added
- EOF is now properly handled
###Todo
- - Access to the history datastructure
- - Access to the current location
+ - Use builtin Maybe if available, otherwise fall back on own Maybe
- Complete history api implementation
- - Embed the readline library in the object files in such a way that no special
- compiler flag is needed.
- Control over tabcompletion, right now it completes on filenames.
- Check possibilities for Windows/Mac