X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-simple-streams%2Fterminal.lisp;h=fc16adc68dd8be7e4c75413345773b6410637603;hb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;hp=b4b82d9fa01a4bca62045b425261d626b731d01d;hpb=79cc569a97e444389350ea3f5b1017374fe16bec;p=sbcl.git diff --git a/contrib/sb-simple-streams/terminal.lisp b/contrib/sb-simple-streams/terminal.lisp index b4b82d9..fc16adc 100644 --- a/contrib/sb-simple-streams/terminal.lisp +++ b/contrib/sb-simple-streams/terminal.lisp @@ -3,7 +3,7 @@ ;;; ********************************************************************** ;;; This code was written by Paul Foley and has been placed in the public ;;; domain. -;;; +;;; ;;; Sbcl port by Rudi Schlatte. @@ -26,7 +26,7 @@ (setf (sm input-handle stream) (getf options :input-handle)) (add-stream-instance-flags stream :simple :dual :input) (when (sb-unix:unix-isatty (sm input-handle stream)) - (add-stream-instance-flags stream :interactive)) + (add-stream-instance-flags stream :interactive)) (unless (sm buffer stream) (let ((length (device-buffer-length stream))) (setf (sm buffer stream) (allocate-buffer length) @@ -55,7 +55,7 @@ (unless buffer-only (let ((buffer (allocate-buffer sb-impl::bytes-per-buffer))) (unwind-protect - (loop until (<= (read-octets stream buffer - 0 sb-impl::bytes-per-buffer nil) - 0)) - (free-buffer buffer))))) + (loop until (<= (read-octets stream buffer + 0 sb-impl::bytes-per-buffer nil) + 0)) + (free-buffer buffer)))))