[
https://issues.jboss.org/browse/WFCORE-2896?page=com.atlassian.jira.plugi...
]
Jean-Francois Denise updated WFCORE-2896:
-----------------------------------------
Description:
Ctrl-C CLI behaviour (similar to bash):
- If auto-connect is enabled (-c option). If prompt occurs for credentials, typing Ctrl-C
should exit the CLI process
- As soon as we have reached the CLI prompt,Ctrl-C will NOT exit the CLI whatever the
use-case.
- Ctrl-C sent to terminal without any command running print a new line and new prompt.
- Ctrl-C sent to terminal with command running interrupts the running command, print a new
line and new prompt.
- Ctrl-D sent to terminal without any text typed-in, the CLI exits.
- Ctrl-D sent to terminal with some text typed-in, does nothing.
was:
Ctrl-C typed in the CLI behaviour:
- If auto-connect is enabled (-c option). If prompt occurs for credentials, typing Ctrl-C
should exit the CLI process
- As soon as we have reached the CLI prompt, any prompting is bound to a command execution
(eg: connect, reload, ...), in that case Ctrl-C shouldn't exit the process. It should
interrupt the command
- Ctrl-C typed for long running command should only interrupt the command.
- Ctrl-C typed when pausing long output should only interrupt output pause.
- Ctrl-C typed in the terminal without command running exit the CLI process.
Revisit CLI Ctrl-C handling
---------------------------
Key: WFCORE-2896
URL:
https://issues.jboss.org/browse/WFCORE-2896
Project: WildFly Core
Issue Type: Enhancement
Components: CLI
Reporter: Jean-Francois Denise
Assignee: Jean-Francois Denise
Ctrl-C CLI behaviour (similar to bash):
- If auto-connect is enabled (-c option). If prompt occurs for credentials, typing Ctrl-C
should exit the CLI process
- As soon as we have reached the CLI prompt,Ctrl-C will NOT exit the CLI whatever the
use-case.
- Ctrl-C sent to terminal without any command running print a new line and new prompt.
- Ctrl-C sent to terminal with command running interrupts the running command, print a
new line and new prompt.
- Ctrl-D sent to terminal without any text typed-in, the CLI exits.
- Ctrl-D sent to terminal with some text typed-in, does nothing.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)