Class TextInput

java.lang.Object
org.strassburger.tui4j.input.Input<String,TextInput>
org.strassburger.tui4j.input.TextInput

public class TextInput extends Input<String,TextInput>
  • Constructor Details

    • TextInput

      public TextInput()

      Reads a single line of text from the console.

      Example usage:

      
       String name = new TextInput()
              .setLabel("What is your name?")
              .setRetryOnInvalid(true)
              .read();
       
  • Method Details