Clean up terminal configuration
This commit is contained in:
parent
e76aefa3d1
commit
a20849a5b4
|
@ -9,15 +9,11 @@ import java.io.PipedOutputStream
|
|||
|
||||
class TerminalConfiguration {
|
||||
|
||||
var inputWriter: PipedOutputStream? = null
|
||||
private set
|
||||
lateinit var inputWriter: PipedOutputStream
|
||||
lateinit var inputReader: PipedInputStream
|
||||
private set
|
||||
var outputWriter: PipedOutputStream? = null
|
||||
private set
|
||||
var outputReader: PipedInputStream? = null
|
||||
private set
|
||||
var terminal: IOSafeTerminal? = null
|
||||
lateinit var outputWriter: PipedOutputStream
|
||||
lateinit var outputReader: PipedInputStream
|
||||
lateinit var terminal: IOSafeTerminal
|
||||
|
||||
fun setInputPair(inputWriter: PipedOutputStream, inputReader: PipedInputStream) {
|
||||
this.inputWriter = inputWriter
|
||||
|
@ -27,7 +23,7 @@ class TerminalConfiguration {
|
|||
|
||||
private fun connectInputPair() {
|
||||
try {
|
||||
inputWriter!!.connect(inputReader!!)
|
||||
inputWriter.connect(inputReader)
|
||||
} catch (e: IOException) {
|
||||
throw LispIOException(e)
|
||||
}
|
||||
|
@ -41,7 +37,7 @@ class TerminalConfiguration {
|
|||
|
||||
private fun connectOutputPair() {
|
||||
try {
|
||||
outputWriter!!.connect(outputReader!!)
|
||||
outputWriter.connect(outputReader)
|
||||
} catch (e: IOException) {
|
||||
throw LispIOException(e)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue