Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 953 Bytes

File metadata and controls

36 lines (26 loc) · 953 Bytes

Vanity Readlisp

Readlisp is a Linux utility that provides line editing and history for Scheme REPLs. It was written because I found myself avoiding using ' for quote with when using Vanity Scheme's REPL.

Compared to GNU Readline + rlwrap, it correctly matches parentheses for Scheme expressions, that is these inputs are considered unbalanced by rlwrap but balanced by readlisp.

> (display 'Hello)
> (display #\))
> (display (quote |)|))

Also, it initially refuses to submit unbalanced inputs, though this can be overridden by hitting enter twice. The refusal to submit will in future be replaced with a multiline editor.

Installing

make
sudo make install

Usage

readlisp <command> <args> ...

TODO

  • Pesudoterminal
  • Readlisp as a Library
  • Capture stdout and stderr from child
  • Child Prompt Sequences
  • SIGWINCH handling
  • Multiline Editing
  • Paste Sequences