- All Superinterfaces:
PromptResult<KeyPressPrompt>
- All Known Implementing Classes:
DefaultKeyPressResult
Result of a key press prompt. Contains the key that was pressed.
-
Method Summary
Methods inherited from interface org.jline.prompt.PromptResult
getDisplayResult, getPrompt, getResult
-
Method Details
-
getKey
String getKey()Get the key that was pressed.- Returns:
- the pressed key as a string
-