Changeset 7776


Ignore:
Timestamp:
Nov 29, 2007, 1:41:12 AM (17 years ago)
Author:
Gary Byers
Message:

Fix Y-OR-N-P: don't assume that PEEK-CHAR does a READ-CHAR, but if we
see a buffered #\Newline, read it. This should fix ticket:190, which
should have been called "Y-OR-N-P makes invalid assumptions about how
PEEK-CHAR is implemented."

(All of this just has to do with consuming a trailing #\Newlime so that
it isn't echoed.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/format.lisp

    r4537 r7776  
    21512151        (setq response (read-char *query-io*))
    21522152        (when (peek-char #\NewLine *query-io* nil)
    2153           (unread-char #\NewLine *query-io*)
    21542153          (read-char *query-io*))
    21552154        (clear-input *query-io*)
Note: See TracChangeset for help on using the changeset viewer.