update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
|
|
@ -0,0 +1,11 @@
|
|||
#lang racket
|
||||
(define (print text)
|
||||
;; try lpr first
|
||||
(define lpr-exe (find-executable-path "lpr"))
|
||||
;; otherwise use a special file
|
||||
(if lpr-exe
|
||||
(with-input-from-string (~a text "\n") (λ() (void (system* lpr-exe))))
|
||||
(with-output-to-file #:exists 'append
|
||||
(case (system-type) [(windows) "PRN"] [else "/dev/lp0"])
|
||||
(λ() (displayln text)))))
|
||||
(print "Hello World!")
|
||||
Loading…
Add table
Add a link
Reference in a new issue