Debian Codegraph @

examples/get-raw-chars.scm

raw
1 ;; Example of reading a raw keyboard input from console, using text.console.
2
3 (use text.console)
4
5 (define (main _)
6 (for-each (^c (write c) (newline))
7 (call-with-console (guard (e [else (exit 1 (condition-message e))])
8 (make-default-console))
9 get-raw-chars))
10 0)