]> git.lizzy.rs Git - linenoise.git/commit
Big cleanups to linenoise
authorSteve Bennett <steveb@workware.net.au>
Thu, 7 Apr 2011 22:11:09 +0000 (08:11 +1000)
committerSteve Bennett <steveb@workware.net.au>
Fri, 8 Apr 2011 01:38:25 +0000 (11:38 +1000)
commit70fc7e0dc53624cac9389d2f67521256829cc288
treee838673f3c382956803d8aa6016e4b5d3d39998d
parente50556d4a87b97deaad64bd6654881a1ee006442
Big cleanups to linenoise

- Use a structure (current) to hold the state.
- Add fd_printf() to simplify output
- Add has_room(), insert_char(), remove_char(), fd_read()
- Use ctrl(X) instead of magic numbers
- Escape special chars in the history file
- Provide access to the history lines
- Completion support is optional

Signed-off-by: Steve Bennett <steveb@workware.net.au>
example.c
linenoise.c
linenoise.h