int readByteSync( )

Synchronously read a byte from stdin. This call will block until a byte is available.

If at end of file, -1 is returned.

Source

/**
 * Synchronously read a byte from stdin. This call will block until a byte is
 * available.
 *
 * If at end of file, -1 is returned.
 */
external int readByteSync();