Class PrompterFactory

java.lang.Object
org.jline.prompt.PrompterFactory

public final class PrompterFactory extends Object
Factory for creating Prompter instances.
  • Method Details

    • create

      public static Prompter create(org.jline.terminal.Terminal terminal)
      Create a new Prompter instance with the given terminal.
      Parameters:
      terminal - the terminal to use
      Returns:
      a new Prompter instance
    • create

      public static Prompter create(org.jline.terminal.Terminal terminal, PrompterConfig config)
      Create a new Prompter instance with the given terminal and configuration.
      Parameters:
      terminal - the terminal to use
      config - the configuration to use
      Returns:
      a new Prompter instance
    • create

      public static Prompter create(org.jline.reader.LineReader reader, org.jline.terminal.Terminal terminal, PrompterConfig config)
      Create a new Prompter instance with the given line reader, terminal, and configuration.
      Parameters:
      reader - the line reader to use
      terminal - the terminal to use
      config - the configuration to use
      Returns:
      a new Prompter instance