char-ready?

Name

char-ready? -- Check whether it is safe to read a character

Type: function

Synopsis

char-ready?(, bool);

Arguments

input-port

An instance of <input-port>. Default is the current input port

Return Values

bool

#t or #f

Description

This function returns #t if a subsequent call to read-char on the port is guaranteed not to block. Otherwise it returns #f.