ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to develop some ncurses code with Lisp, but I'm having some trouble... I currently run emacs with slime and sbcl, and it's working great for "conventional" lisp. However, I cannot get cl-ncurses to work properly.
I am able to do:
and after that is somemore ncurses-specific code (mvaddstr etc.)
Now, I get absolutely no errors, and everything seems fine, but when I run the start function, all I get is... well, nothing! Screen doesn't clear, none of the text from mvaddstr is displayed etc. it just sorta hangs in an infinite loop.
I understand that Emacs is not very good with curses, but I couldn't find anything online that would help me fix that... maybe I was looking in the right place? I don't know.. but it'd be great to get this working!
Well, when I run some cl-ncurses code in sbcl (without slime+emacs, so yeah, in term) it works fine.
I tried running the same code and looking at the *inferior-lisp* buffer, however.. the printed message did not appear, but it did wait for a key press (cl-ncurses:getch), and when I pressed a key in *inferior-lisp*, it exited the ncurses program... so it kinda works, but kinda doesn't hehe
Edit: I just noticed that whenever I run the function in slime, and then go to *inferior-lisp*, it has a whole bunch of white-space... still no message, but it's interesting I suppose..
which gave me no errors, and it create the "sbclswank" executable just fine. But when I run ./sbclswank it says ";; Swank started at port: 4005" but then it just exits, and when I try to do slime-connect via emacs, it gives me an error...
Sorry for the delay, I had to reconnect an older box to try this out.
Quote:
which gave me no errors, and it create the "sbclswank" executable just fine. But when I run ./sbclswank it says ";; Swank started at port: 4005" but then it just exits,
Yes, is seems the :toplevel options wants a function that is equivalent to the REPL, but swank:create-server returns after creating the server. Leaving out the the :toplevel argument and running ./sbclwank --eval '(swank:create-server)' works fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.