summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-04-13 15:43:38 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-04-13 15:43:38 -0400
commitcf2e3661dacbe3de5e325cb5cd4016a740b9bee8 (patch)
tree38b6bea0c6d8507c997706d43f7b4447c9368518
parent9fdf37e3032defc8ea11fd59722b487163381422 (diff)
Made GenericCommandMode work for all terminals
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java
index 4f8e1c8..a1c4461 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java
@@ -90,7 +90,7 @@ public class GenericCommandMode implements ICommandMode {
// Add commands handled in a upper layer
defaultHandlers.put("clear", new GenericCommand((args) -> {
errorOutput.accept(
- "ERROR: This is a bug. Please report to the developer");
+ "ERROR: This console doesn't support screen clearing");
return this;
}, "clear\tClear the screen",
@@ -99,12 +99,12 @@ public class GenericCommandMode implements ICommandMode {
defaultHandlers.put("exit", new GenericCommand((args) -> {
errorOutput.accept(
- "ERROR: This is a bug. Please report to the developer");
+ "ERROR: This console doesn't support auto-exiting");
return this;
}, "exit\tExit the game",
"exit first prompts the user to make sure they want to exit,"
- + " and if they affirm it, it quits the game"));
+ + " and if they affirm it, it quits"));
}
/**
@@ -242,8 +242,8 @@ public class GenericCommandMode implements ICommandMode {
if (commandHandlers.getSize() > 0) {
commandHandlers.forEachValue((command) -> {
if (!command.isAlias()) {
- normalOutput.accept("\t"
- + command.getHelp().getSummary() + "\n");
+ normalOutput.accept(
+ "\t" + command.getHelp().getSummary() + "\n");
}
});
} else {
@@ -255,8 +255,8 @@ public class GenericCommandMode implements ICommandMode {
if (defaultHandlers.getSize() > 0) {
defaultHandlers.forEachValue((command) -> {
if (!command.isAlias()) {
- normalOutput.accept("\t"
- + command.getHelp().getSummary() + "\n");
+ normalOutput.accept(
+ "\t" + command.getHelp().getSummary() + "\n");
}
});
} else {