Rename NoNonBlockingReader to NoConsoleNonBlockingReader

This commit is contained in:
Karlatemp 2020-09-11 20:03:45 +08:00
parent f677516a70
commit 284f6a28e1
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -33,7 +33,7 @@ import java.io.PrintWriter
private const val LN_INT = '\n'.toInt()
private const val LN_BYTE = '\n'.toByte()
internal object NoNonBlockingReader : NonBlockingReader() {
internal object NoConsoleNonBlockingReader : NonBlockingReader() {
override fun read(timeout: Long, isPeek: Boolean): Int {
return LN_INT
}
@ -206,7 +206,7 @@ internal object AllEmptyLineReader : LineReader {
internal object NoConsole : AbstractTerminal(
"No Console", "No Console"
) {
override fun reader(): NonBlockingReader = NoNonBlockingReader
override fun reader(): NonBlockingReader = NoConsoleNonBlockingReader
private val AllIgnoredPrintWriter = object : PrintWriter(AllIgnoredOutputStream) {
override fun close() {