Terminal control/Cursor positioning: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
(Add a Common Lisp example using ncurses) |
||
Line 190: | Line 190: | ||
GOBACK |
GOBACK |
||
.</lang> |
.</lang> |
||
=={{header|Common Lisp}}== |
|||
==={{header|ncurses}}=== |
|||
To interface the ncurses C library from Lisp, the ''croatoan'' library is used. |
|||
<lang lisp>(defun cursor-positioning () |
|||
(with-screen (scr :input-blocking t :input-echoing nil :cursor-visible nil) |
|||
(move scr 5 2) |
|||
(princ "Hello" scr) |
|||
(refresh scr) |
|||
;; wait for keypress |
|||
(get-char scr)))</lang> |
|||
=={{header|D}}== |
=={{header|D}}== |