Tty
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Read up to count bytes into buffer at offset from the standard input stream. The number of bytes read will be returned. 0 will be returned if interruptRead is called while waiting for input. -1 will be returned if the input stream is closed.
Link copied to clipboard
expect fun readInputWithTimeout(buffer: ByteArray, offset: Int, count: Int, timeoutMillis: Int): Int
Read up to count bytes into buffer at offset from the standard input stream. The number of bytes read will be returned. 0 will be returned if interruptRead is called while waiting for input, or if at least timeoutMillis have passed without data. -1 will be returned if the input stream is closed.
Link copied to clipboard
Link copied to clipboard