1 Breedline is a BSD-licensed simplistic alternative to readline.
2 Please see the LICENSE-BSD file for the exact license.
4 Breedline provides a limited alternative to readline. It has
5 only support for the most basic readline-like editing interface
6 as well as a callback-based interface for integrating to various
7 mainloops. Glib and murphy mainloop integration convenience
8 libraries are readily provided.
10 Breedline should work with most terminal emulators that support
11 just the following set of VT100 escape sequences:
13 - move cursor to beginning of line (ESC[0G)
14 - move cursor right by %d (ESC[%dC)
15 - erase right of cursor til the end of line (ESC[0K)
17 I have tested it only with xterm, vt100, ansi, and linux console
18 terminal settings in practice but in principle it should work with
19 almost all non-dumb terminals out there.
21 Currently breedline supports the following editing commands:
23 - basic cursor positioning:
24 o left: left arrow/ctrl-b
25 o right: right arrow/ctrl-f
26 o beginning of line: home/ctrl-a/
27 o end of line: end/ctrl-e
28 o word left: ctrl left arrow
29 o word right: ctrl right arrow
34 o kill line: ctrl-u (saves to yank buffer)
35 o kill rest of line: ctrl-k (saves to yank buffer)
39 o previous: up arrow/ctrl-p
40 o next: down arrow/ctrl-n