diff options
| author | Ben Culkin <scorpress@gmail.com> | 2023-06-23 19:48:38 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2023-06-23 19:48:38 -0400 |
| commit | 2df02c35b70f7e8077832470de9594b657f1be67 (patch) | |
| tree | 4353ce1f78571e038bbe8fed62d321c77a7b868c /base/src/main/java/bjc/utils/cli/TerminalCodes.java | |
| parent | 4a96d9cad446ea405b51dfeebb01a1b6d7f6fb2b (diff) | |
Add terminal
This is some functionality based on the way that MVS/other IBM OSes
handle their UI
Diffstat (limited to 'base/src/main/java/bjc/utils/cli/TerminalCodes.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/cli/TerminalCodes.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/cli/TerminalCodes.java b/base/src/main/java/bjc/utils/cli/TerminalCodes.java new file mode 100644 index 0000000..c1d7dfc --- /dev/null +++ b/base/src/main/java/bjc/utils/cli/TerminalCodes.java @@ -0,0 +1,36 @@ +package bjc.utils.cli; + +/** + * Status codes output by {@link Terminal}. + * + * Format is a two-letter system code, a two letter subsystem code, a severity + * letter and a five digit error code. + * + * @author bjcul + * + */ +public enum TerminalCodes { + // TODO convert these into a class, and add an ability to read from the file + // The general idea of the format would be a tab-separated value file, with the + // first value being a command, and then the rest being the body of that command. + // Would also have the line-continuation feature + INFO_STARTCOMPROC("IOLPI00001", "STARTING PROCESSING"), + INFO_ENDCOMPROC("IOLPI00002", "ENDING PROCESSING"), + + ERROR_UNRECCOM("IOINE00001", "UNRECOGNIZED COMMAND"), + ERROR_INVREPNO("IOINE00002", "INVALID REPLY NUMBER FORMAT"), + ERROR_UNKREPNO("IOINE00002", "UNKNOWN REPLY NUMBER"), + ; + public final String code; + public final String message; + + private TerminalCodes(String code, String message) { + this.code = code; + this.message = message; + } + + @Override + public String toString() { + return code + " " + message; + } +} |
