Class CommandProcessor

java.lang.Object
net.minheur.potoflux.terminal.CommandProcessor

public class CommandProcessor extends Object
This class is used to handle the processing of the commands, the input and the output
  • Constructor Details

    • CommandProcessor

      public CommandProcessor()
  • Method Details

    • processCommand

      public static void processCommand(String pCommand)
      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

      public static void appendOutput(String text)
      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