[jboss-as7-dev] cli terminal changes

Alexey Loubyansky alexey.loubyansky at redhat.com
Mon May 7 02:18:28 EDT 2012


I'd like to let everybody know that thanks to Stale's efforts we are 
switching from jline to Stale's jreadline project as the base 
console/terminal for the CLI.

jline has a number of bugs that we can't do anything about. jreadline 
has fixed those and Stale is happy to continue improving things.

Of course, a few changes will come along with the switch. They are

- the ordering of columns are different compared to jline, jreadline 
does it similar to bash;
- tab-completion is more like bash, i.e. if there are 'file' and
'file2', completing 'f' will result in 'file' w/o showing 'file2'
candidate (like jline would do) unless the tab key is pressed after 'file';
- there are no more files that are read to enable key bindings. By 
default emacs-mode is enabled, but vi-mode is also supported. jreadline 
has more keybindings compared to jline and also follows what's default 
in bash;
- atm reading the ~/.inputrc is not enabled, but we could enable if 
necessary. If people have defined vi-mode, it will catch it and enable 
vi-mode by default;
- undo and redo is another new feature afaik.

In the future it will also be possible to customize different bindings 
to different actions in that file, but its not supported now.

Here are a couple of major issues that'll be fixed with the switch:
- to be able to navigate and edit commands that spread across multiple
lines (AS7-2615 Backspace doesn't work over linebreaks);
- AS7-2436 clear screen doesn't work on windows 7.


The pull request hasn't been sent yet. It's just a warning that this is 
coming.

Please, let us know if you have any concerns about this.

Thanks,
Alexey


More information about the jboss-as7-dev mailing list