diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-04-13 15:43:38 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-04-13 15:43:38 -0400 |
| commit | cf2e3661dacbe3de5e325cb5cd4016a740b9bee8 (patch) | |
| tree | 38b6bea0c6d8507c997706d43f7b4447c9368518 | |
| parent | 9fdf37e3032defc8ea11fd59722b487163381422 (diff) | |
Made GenericCommandMode work for all terminals
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java | 14 |
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 { |
