Opened 12 years ago

Closed 12 years ago

#190 closed defect (fixed)

Single-character input doesn't work correctly with IDE selection streams

Reported by: alms Owned by: gb
Priority: major Milestone:
Component: IDE Version:
Keywords: Cc:

Description

? (y-or-n-p "Well, what's it going to be?") Well, what's it going to be? (y or n) y

Error: Two UNREAD-CHARs without intervening READ-CHAR on #<SELECTION-INPUT-STREAM :UTF-8 (TTY/6) #x30004193150D> While executing: CCL::%IOBLOCK-UNTYI, in process Listener(94). Type :POP to abort, :R for a list of available restarts. Type :? for other options.

1 >

Change History (2)

comment:1 Changed 12 years ago by gb

  • Component changed from ANSI CL Compliance to IDE
  • Status changed from new to assigned
  • Summary changed from y-or-n-p broken to Single-character input doesn't work correctly with IDE selection streams

This doesn't have anything to do with Y-OR-N-P itself.

comment:2 Changed 12 years ago by gb

  • Resolution set to fixed
  • Status changed from assigned to closed

The culprit was indeed Y-OR-N-P, which was assuming that PEEK-CHAR did something that allowed a subsequent UNREAD-CHAR to be valid.

Should be fixed in changeset:7777.

Note: See TracTickets for help on using tickets.