add Jline.createReader() back for source compatibility

This commit is contained in:
Mark Harrah 2013-02-26 09:04:21 -05:00
parent ae3690676e
commit cb9266d05a
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ private object JLine
t.setEchoEnabled(true) t.setEchoEnabled(true)
f(t) f(t)
} }
def createReader(historyPath: Option[File]) = def createReader(): ConsoleReader = createReader(None)
def createReader(historyPath: Option[File]): ConsoleReader =
usingTerminal { t => usingTerminal { t =>
val cr = new ConsoleReader val cr = new ConsoleReader
cr.setBellEnabled(false) cr.setBellEnabled(false)