public class InputUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addHistory(java.lang.String entry) |
static java.util.ArrayList<java.lang.String> |
getHistory() |
static java.lang.String |
promptUserInput(java.util.ArrayList<java.lang.String> commandReferences,
java.lang.String prompt)
Takes in user input and prints result of each character.
|
static void |
setAlertsEnabled(boolean enabled) |
static void |
setHistoryEnabled(boolean enabled) |
static void |
setTabCompletionEnabled(boolean enabled) |
public static void setHistoryEnabled(boolean enabled)
public static void setTabCompletionEnabled(boolean enabled)
public static void setAlertsEnabled(boolean enabled)
public static java.util.ArrayList<java.lang.String> getHistory()
public static void addHistory(java.lang.String entry)
public static java.lang.String promptUserInput(java.util.ArrayList<java.lang.String> commandReferences, java.lang.String prompt) throws java.io.IOException, java.lang.InterruptedException
commandReferences
- possible references that can be toggled with the 'tab' keyprompt
- the first String to come up on the CLI to prompt the user for
inputjava.io.IOException
java.lang.InterruptedException