40ants / 40ants/lisp-project-of-the-day

cl-ncurses

Offen
#2 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Common Lisp
Sterne
55
Forks
6
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello!

As a blog comment, here's my complain: I was excited, thanks for the snippet, but failed to run the ncurses example :(

```
(ql:quickload :cl-ncurses)

(defpackage :curse
(:use :cl
:cl-ncurses)
(:shadowing-import-from :cl-ncurses
:timeout))

(in-package :curse)

(defun main (&rest argv)
"This example is based on:
https://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/windows.html"
(declare (ignorable argv))
(initscr)
(start-color)
(init-pair 1
color_red
color_black)


```

sbcl --load ncurses.lisp

=>

```
; Loading "cl-ncurses"

;
; caught STYLE-WARNING:
; Undefined alien: "stdscr"
;
; compilation unit finished
; caught 1 STYLE-WARNING condition
While evaluating the form starting at line 71, column 0
of #P"/home/vince/bacasable/bacalisp/ncurses.lisp":

debugger invoked on a SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR in thread
#:
The alien function "initscr" is undefined.
```

I installed `ncurses-dev`, alias `libncurses5-dev libncursesw5-dev`, to no avail. Not searching longer :]

ps: if you want blog comments, I like blog comments linked to Github with Uterances: https://utteranc.es/

pps:

> Full examples are available here: --no link--

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.