bjoterm: the line editor, (bjoterm line)
- line-read with the keys of Emacs and readline: moving by character, word and line, a kill buffer, history with C-r search, Tab completion through #:completer, and input of several lines with #:input-done?. - Grapheme clusters and display widths in glue/Text.cs: the editor moves and deletes by cluster, and wraps lines by width. - Each key is a pure step, so tests/line.bjo runs the keys without a terminal through simulate-line. tests/line-terminal.bjo runs line-read on a pseudo-terminal. - History files, line-history-save and line-history-load!. - examples/repl.bjo: a small REPL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fe42387a4c
commit
6863503fa7
7 changed files with 1235 additions and 2 deletions
|
|
@ -21,6 +21,11 @@ Examples:
|
|||
## This package
|
||||
|
||||
- `bjo build` builds the library and the glue in `glue/`.
|
||||
- `bjo test` runs `tests/keys.bjo` (the decoder, from bytes) and
|
||||
`tests/terminal.bjo` (raw mode on a pseudo-terminal, under `script`).
|
||||
- `bjo test` runs the tests:
|
||||
- `tests/keys.bjo`: the decoder, from bytes.
|
||||
- `tests/line.bjo`: the line editor's keys, history and completion,
|
||||
through `simulate-line`, without a terminal.
|
||||
- `tests/terminal.bjo` and `tests/line-terminal.bjo`: raw mode and
|
||||
`line-read` on a pseudo-terminal, under `script`.
|
||||
- `examples/keys.bjo` prints events; `examples/repl.bjo` is a small REPL.
|
||||
- `plan.org` has the decisions and the phases.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue