Opened 3 months ago

Last modified 2 months ago

#1435 new defect

getstr function in ncurses egg

Reported by: andrea Owned by:
Priority: not urgent at all Milestone: someday
Component: extensions Version: 4.13.0
Keywords: ncurses Cc:
Estimated difficulty: easy


I'm not expert about Chicken Scheme and easyffi, so I tried to read the source of the ncurses egg but I did not come up with it.
I'm using Chicken 4.13 and the last version of the egg (i.e. 1.6) installed with "chicken-install ncurses".
The problem is this:

(require-extension ncurses)

(let ((stdscr (initscr)) (str (make-string 10)))
  (getstr str)
  (addstr str)

The error is this:

Error: bad argument type - not a pointer: "          "

It has been a similar problem:
but it says that it has been solved now (but I still obtain an error, different from the one mentioned).

Change History (2)

comment:1 Changed 3 months ago by megane

Using make-locative from lolevel works: (getstr (make-locative str)).

comment:2 Changed 2 months ago by andrea

Is this the correct behaviour? Have I to close the ticket?

Note: See TracTickets for help on using tickets.