Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
#lang racket
|
||||
(require ffi/unsafe ffi/unsafe/define)
|
||||
(define-ffi-definer defwin #f)
|
||||
(defwin GetStdHandle (_fun _int -> _pointer))
|
||||
(defwin ReadConsoleOutputCharacterA
|
||||
(_fun _pointer _pointer _uint _uint [len : (_ptr o _uint)] -> _bool))
|
||||
|
||||
(define b (make-bytes 1 32))
|
||||
(and (ReadConsoleOutputCharacterA (GetStdHandle -11) b 1 #x50002)
|
||||
(printf "The character at 3x6 is <~a>\n" b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue