basic jline2.6 support

It's kind of ugly