readLineOrNull

abstract fun readLineOrNull(hideInput: Boolean): String?

Read a single line of input from stdin, returning null if no input is available

Parameters

hideInput

If true, treat the input like a password that should not be echoed to the screen as it's typed.

Throws

if the current interface doesn't support reading input. Currently, all targets are supported by default except Browser JS.