(use ncurses lolevel data-structures) (define (get-string max) (let ((buffer (make-string max #\null))) (getnstr (make-locative buffer) max) (string-translate buffer #\null))) (let ((stdscr (initscr)) (str (get-string 10))) (addstr str) (getch) (write str))