clearReaderDisplay

See also

Clears the reader display.

This suspend function integrates with Kotlin's structured concurrency. If the coroutine calling this function is cancelled, the underlying operation will be cancelled as well.

Example usage:

val job = coroutineScope.launch {
try {
terminal.clearReaderDisplay()
// Handle successful display clear
} catch (e: TerminalException) {
// Handle display clear failure
}
}

// Cancelling the job will cancel the clear display operation
job.cancel()

Throws

if the operation fails