Interface KeyPressPrompt

All Superinterfaces:
Prompt
All Known Implementing Classes:
DefaultKeyPressPrompt

public interface KeyPressPrompt extends Prompt
Interface for key press prompts. A key press prompt displays a message and waits for the user to press any key to continue.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Get the hint text displayed to the user (e.g., "Press any key to continue...").

    Methods inherited from interface org.jline.prompt.Prompt

    getFilter, getMessage, getName, getTransformer
  • Method Details

    • getHint

      default String getHint()
      Get the hint text displayed to the user (e.g., "Press any key to continue...").
      Returns:
      the hint text