Description of problem: I am unable to quit from console installation using Ctrl+C shortcut. OS: Windows Version-Release number of selected component (if applicable): EAP 6.2.0.ER3 Steps to Reproduce: 1. Start the console installation 2. Press Ctrl+C Actual results: Nothing really happens. Expected results: Installation will quit. Additional info: Regression against EAP 6.1.1
Hello, I've looked into this, and found out a change in the jline dependency is needed to resolve this issue. After some testing I found out jline read the Insert button and Ctrl-C as the same character code on windows. Making a change in jline's ConsoleReader.java class will allow use to exit with Ctrl-C (but also if the Insert button if pressed) If you would like to exit with a similar combination I have made some changes so that Ctrl-D will exit your program. The reason for this is because there is a bug where Ctrl-D will pass in a null value into our installer. Also the unix meaning of Ctrl-D means the end of any further text input. http://git.app.eng.bos.redhat.com/izpack.git/commit/?h=izpack-wip&id=892cdca7e01a9b558a81dad60fb1c2863c116670 While playing with jline I also got the tilde to expand the the full path of the user's home directory, both in windows and unix (https://bugzilla.redhat.com/show_bug.cgi?id=883419). Although on windows paths starting with C:\ seems like it still won't auto-complete(https://bugzilla.redhat.com/show_bug.cgi?id=1013972). If we end up being able to modify jline I may look into these more. Let me know what actions to take if any. Thanks.
Hi Miles, can you than look more into jline and try to modify it so we get the same behaviour for Ctlr+C and Insert as we have with 6.1.1 installer? Thanks
Hello, Jline has been updated so Ctrl+C will not exit the console installation on Windows. Modifications have also been made for places where jline is not used to enable Ctrl+C to exit from console installation on windows. http://git.app.eng.bos.redhat.com/izpack.git/commit/?h=izpack-wip
Correction to above comment. Ctrl+C will 'now' exit the console installation on Windows.
Verified on EAP 6.2.0.ER7 installer.
We may add the note about jline reading the Insert button and Ctrl-C as the same character code on windows -> exit the console installation. Someone may be confused by this.