Re: Curses alternative for Lisp?
- From: grue@xxxxxxx (Timofei Shatrov)
- Date: Mon, 31 Dec 2007 11:02:43 GMT
On Sun, 30 Dec 2007 15:42:30 +0100, Andreas Davour
<anteRUN@xxxxxxxxxxxxxxxxxxxx> tried to confuse everyone with this message:
grue@xxxxxxx (Timofei Shatrov) writes:
On Sun, 30 Dec 2007 06:06:09 +0100, Andreas Davour
<anteRUN@xxxxxxxxxxxxxxxxxxxx> tried to confuse everyone with this message:
So, what do people use to build text based menu systems, and to do other
terminal based maneuvers in lisp? In C I would reach for curses, but
what now? Any hints?
Use CFFI to call Ncurses _or_ PDcurses (to cover non-Linux systems). A
reasonably useful implementation can be found here:
http://common-lisp.net/project/lifp/sewers-src.zip
(check out curses.lisp; it also contains some bloat such as REPL
implementation; oh, there is also a whole game that uses the library)
Ouch! I sense a lack, or maybe I'm into unidiomatic territory.
I don't see how Lisp is different from C in this case. In either case you have
to call some external library. The fact that curses implementations are written
in C doesn't matter. This is extremely low-level OS-specific stuff, and perhaps
C is the best language to implement that stuff in. Once you have FFI bindings,
curses is just as easy and natural to use in Lisp as in C.
--
|Don't believe this - you're not worthless ,gr---------.ru
|It's us against millions and we can't take them all... | ue il |
|But we can take them on! | @ma |
| (A Wilhelm Scream - The Rip) |______________|
.
- Follow-Ups:
- Re: Curses alternative for Lisp?
- From: Andreas Davour
- Re: Curses alternative for Lisp?
- References:
- Curses alternative for Lisp?
- From: Andreas Davour
- Re: Curses alternative for Lisp?
- From: Timofei Shatrov
- Re: Curses alternative for Lisp?
- From: Andreas Davour
- Curses alternative for Lisp?
- Prev by Date: Re: #;
- Next by Date: Re: clsql hunchentoot problem working together
- Previous by thread: Re: Curses alternative for Lisp?
- Next by thread: Re: Curses alternative for Lisp?
- Index(es):
Relevant Pages
|