Class DefaultKeyPressPrompt

java.lang.Object
org.jline.prompt.impl.DefaultPrompt
org.jline.prompt.impl.DefaultKeyPressPrompt
All Implemented Interfaces:
KeyPressPrompt, Prompt

public class DefaultKeyPressPrompt extends DefaultPrompt implements KeyPressPrompt
Default implementation of KeyPressPrompt.
  • Constructor Details

    • DefaultKeyPressPrompt

      public DefaultKeyPressPrompt(String name, String message, String hint)
  • Method Details

    • getHint

      public String getHint()
      Description copied from interface: KeyPressPrompt
      Get the hint text displayed to the user (e.g., "Press any key to continue...").
      Specified by:
      getHint in interface KeyPressPrompt
      Returns:
      the hint text