Skip to content

Commit a383677

Browse files
deiningremkop
authored andcommitted
JLine: change keystroke syntax 'Ctl-D' to more common used syntax 'Ctrl-D'
1 parent 9159a70 commit a383677

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

picocli-shell-jline2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class Example {
7171
* Top-level command that just prints help.
7272
*/
7373
@Command(name = "", description = "Example interactive shell with completion",
74-
footer = {"", "Press Ctl-D to exit."},
74+
footer = {"", "Press Ctrl-D to exit."},
7575
subcommands = {MyCommand.class, ClearScreen.class, ReadInteractive.class})
7676
static class CliCommands implements Runnable {
7777
final ConsoleReader reader;
@@ -164,7 +164,7 @@ public class Example {
164164
CommandLine cmd = new CommandLine(commands, factory);
165165
reader.addCompleter(new PicocliJLineCompleter(cmd.getCommandSpec()));
166166

167-
// start the shell and process input until the user quits with Ctl-D
167+
// start the shell and process input until the user quits with Ctrl-D
168168
String line;
169169
while ((line = reader.readLine("prompt> ")) != null) {
170170
ArgumentList list = new WhitespaceArgumentDelimiter()

picocli-shell-jline2/src/test/java/picocli/shell/jline2/example/Example.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Example {
2727
* Top-level command that just prints help.
2828
*/
2929
@Command(name = "", description = "Example interactive shell with completion",
30-
footer = {"", "Press Ctl-D to exit."},
30+
footer = {"", "Press Ctrl-D to exit."},
3131
subcommands = {MyCommand.class, ClearScreen.class, ReadInteractive.class})
3232
static class CliCommands implements Runnable {
3333
final ConsoleReader reader;
@@ -120,7 +120,7 @@ public static void main(String[] args) {
120120
CommandLine cmd = new CommandLine(commands, factory);
121121
reader.addCompleter(new PicocliJLineCompleter(cmd.getCommandSpec()));
122122

123-
// start the shell and process input until the user quits with Ctl-D
123+
// start the shell and process input until the user quits with Ctrl-D
124124
String line;
125125
while ((line = reader.readLine("prompt> ")) != null) {
126126
ArgumentList list = new WhitespaceArgumentDelimiter()

picocli-shell-jline3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public class Example {
133133
"Hit @|magenta <TAB>|@ to see available commands.",
134134
"Hit @|magenta ALT-S|@ to toggle tailtips.",
135135
""},
136-
footer = {"", "Press Ctl-D to exit."},
136+
footer = {"", "Press Ctrl-D to exit."},
137137
subcommands = {
138138
MyCommand.class, PicocliCommands.ClearScreen.class, CommandLine.HelpCommand.class})
139139
static class CliCommands implements Runnable {

picocli-shell-jline3/src/test/java/picocli/shell/jline3/example/Example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class Example {
4343
"Hit @|magenta <TAB>|@ to see available commands.",
4444
"Hit @|magenta ALT-S|@ to toggle tailtips.",
4545
""},
46-
footer = {"", "Press Ctl-D to exit."},
46+
footer = {"", "Press Ctrl-D to exit."},
4747
subcommands = {
4848
MyCommand.class, PicocliCommands.ClearScreen.class, CommandLine.HelpCommand.class})
4949
static class CliCommands implements Runnable {

0 commit comments

Comments
 (0)