Replace jline Terminal interface with jline2 TerminalFactory