The TMode Lisp library is interesting for both its features and its design approach.
TMode is a library for creating text-mode user interfaces in Common Lisp.
[...]
By design it is a zero-dependency library, no ncurses, cffi or anything required.
Discussion
The TMode Lisp library is interesting for both its features and its design approach.
TMode is a library for creating text-mode user interfaces in Common Lisp.
[...]
By design it is a zero-dependency library, no ncurses, cffi or anything required.
@amoroso It seems it hardcodes ANSI escape sequences instead of using the terminfo database, bummer.
@galdor Can it be done without CFFI?
@amoroso Of course. I did it myself in C without ncurses recently, it is not that complicated. Look at man term(5) and terminfo(5). Then you write a formatter for capability strings (because they are actually control strings for a small stack machine with arguments and registers), and it just works.