refactored cli classes to adapt to changes in jline 2.9

Some methods have changed from previous jline versions. This pull request fixes issues causes by that

The POM file does not specify a particular version for jline.  Maybe it should be set to a given version number