[forge-dev] [JBoss JIRA] Commented: (SEAMFORGE-36) Ability to backout of a command

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Tue Feb 15 11:30:13 EST 2011


    [ https://issues.jboss.org/browse/SEAMFORGE-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582373#comment-12582373 ] 

Lincoln Baxter III commented on SEAMFORGE-36:
---------------------------------------------

It's funny you should mention this, because it's what I spent all of yesterday researching. I got in touch with one of the major committers in JLine and he proposed the following solution, which is what they do in GShell over at Sonatype:

Jason Dillon suggests:
https://github.com/sonatype/gshell/blob/master/gshell-core/src/main/java/org/sonatype/gshell/console/Console.java
https://github.com/sonatype/gshell/blob/master/gshell-util/src/main/java/org/sonatype/gshell/util/io/InputPipe.java

Which I think is actually the best option I've seen to date assuming no weird hiccups.

~Lincoln

> Ability to backout of a command
> -------------------------------
>
>                 Key: SEAMFORGE-36
>                 URL: https://issues.jboss.org/browse/SEAMFORGE-36
>             Project: Seam Forge
>          Issue Type: Feature Request
>            Reporter: Paul Bakker
>            Priority: Minor
>
> The prompt should have the ability to cancel an action. In some cases you can get into situations where the prompt is blocking, but there is no possible correct input, and you can't get out of the prompt.
> For example when installing new maven dependencies the prompt will display a list of versions. If this list is empty, there is no possible correct value to get to the next step. In a normal shell you would type ctrl-c to cancel a command, but that would close Forge in this case. We need something like ctrl-c within Forge.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-dev mailing list