Package net.minheur.potoflux.terminal
Class CommandProcessor
java.lang.Object
net.minheur.potoflux.terminal.CommandProcessor
This class is used to handle the processing of the commands, the input and the output
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMethod to write in the terminal that no commands has been found.static voidappendOutput(String text) Method used to print something in the terminal.static voidEmpties all the terminal contentstatic voidprocessCommand(String pCommand) Process a raw command to an output in the terminalstatic voidSaves the terminal content to the file
-
Constructor Details
-
CommandProcessor
public CommandProcessor()
-
-
Method Details
-
processCommand
Process a raw command to an output in the terminal- Parameters:
pCommand- the raw command to process
-
appendNoCommand
public static void appendNoCommand()Method to write in the terminal that no commands has been found. -
appendOutput
Method used to print something in the terminal.- Parameters:
text- the content to print
-
clearArea
public static void clearArea()Empties all the terminal content -
runSaveTerminal
public static void runSaveTerminal()Saves the terminal content to the file
-