For all your portable CL raw POSIX I/O needs! We export three simple symbols:
Obviously, read-char and read-line shadow the existing CL symbols. We simply call them inside
with-raw-io is a macro which takes a (ENTITY
&) and executes BODY with IO in non-canonical mode by modifying POSIX termios settings, then restores the previous settings.
At this time, trivial-raw-io has been tested on: SBCL, CCL, CMUCL, and CLISP. All testing has been done on Linux.