Default argument for tty-info as promised in the manual.
This commit is contained in:
parent
c9c0535f41
commit
b222cfe4c3
|
@ -107,8 +107,9 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;; Retrieve tty-info bits from a tty. Arg defaults to current input port.
|
||||
|
||||
(define (tty-info fdport)
|
||||
(let ((control-chars (make-string num-ttychars)))
|
||||
(define (tty-info . maybe-fdport)
|
||||
(let ((control-chars (make-string num-ttychars))
|
||||
(fdport (:optional maybe-fdport (current-input-port))))
|
||||
(apply
|
||||
(lambda (iflag oflag cflag lflag ispeed-code ospeed-code)
|
||||
(make-%tty-info control-chars
|
||||
|
|
Loading…
Reference in New Issue