Skip to content
Snippets Groups Projects
Commit 9d57a7bc authored by wlott's avatar wlott
Browse files

Fixed :clear-input to flush any unread chars.

parent d92dcc7d
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.24 1993/02/26 08:25:27 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.25 1993/06/08 11:20:31 wlott Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -954,6 +954,7 @@ non-server method is also significantly more efficient for large reads.
(setf (fd-stream-ibuf-sap stream) nil))
(lisp::set-closed-flame stream))
(:clear-input
(setf (fd-stream-unread stream) nil)
(setf (fd-stream-ibuf-head stream) 0)
(setf (fd-stream-ibuf-tail stream) 0)
(loop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment