Welcome to the CHICKEN Scheme pasting service

terminal-size (hack) added by mario-goulart on Sun May 17 00:53:23 2015

(use extras ;; for pp
     posix) ;; for call-with-input-pipe

(define (terminal-dimensions)
  (call-with-input-pipe "stty size"
                        (lambda (port)
                          (cons (read port) (read port)))))


(pp (terminal-dimensions))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What does `(string? "foo")' produce?
Visually impaired? Let me spell it for you (wav file) download WAV