Loading repository data…
Loading repository data…
cl-fui / repository
NCURSES bindings in Common Lisp. FU very much. See https://gitlab.com/cl-fui/cl-curses for a more complete implementation...
CL-FU is a Common Lisp CFFI library for NCURSES.
Package :fu exports ncurses bindings with the usual C-to-Lisp mapping (underscores turn to dashes, etc).
The goal of the project is to provide a reasonably complete interface to NCURSES.
06-Nov-2017 - Implementation complete - testing.
(printf "Hello number %d" :int 3)While the goal is a reasonably complete implementation, a decision was made to not bother with:
NCURSES is a console library and requires a real terminal. If you develop with Slime, start a separate Swank session in a terminal, from the command line, with something like:
SBCL:sbcl --eval "(ql:quickload '(:swank) :silent t)" --eval "(swank:create-server :port 4006 :dont-close t :style :fd-handler)"
Roswell: ros run -e "(ql:quickload '(:swank) :silent t)" -e "(swank:create-server :port 4006 :dont-close t)"
Connect to it from emacs with slime-connect, entering the same port (4006 in this case).
Test with something like:
(initscr)
(printw "hello")
(refresh)
(getch)
(endwin)