hyper-literate/collects/quasiquote/qqguir.ss
Robby Findler 9e5d391dfb ...
original commit: 66a62c2f50bd2b8c85867be3e415c6a0b3881f20
2000-05-25 15:55:50 +00:00

22 lines
548 B
Scheme

(unit/sig quasiquote:graphical-interface^
(import)
(define display-image-stream
(lambda (input-port stock-name)
(let ((tmp-file-name
(build-path (current-directory)
(string-append stock-name "."
(number->string (current-seconds))
".gif"))))
(let ((p (open-output-file tmp-file-name)))
(let loop ()
(let ((c (read-char input-port)))
(unless (eof-object? c)
(display c p)
(loop))))
(close-output-port p)
(close-input-port input-port)
(process (string-append "xv " tmp-file-name))))))
)