Class ReverseSearchHistory

java.lang.Object
org.aesh.readline.action.mappings.ReverseSearchHistory
All Implemented Interfaces:
Consumer<InputProcessor>, Action, ActionEvent, SearchAction

public class ReverseSearchHistory extends Object
Action that searches backward through the command history.
Author:
Ståle W. Pedersen
  • Method Details

    • name

      public String name()
      Description copied from interface: Action
      Returns the name of this action.
      Returns:
      the action name
    • input

      public void input(Action action, KeyAction key)
      Description copied from interface: ActionEvent
      Processes an input event with the given action and key.
      Specified by:
      input in interface ActionEvent
      Parameters:
      action - the action that triggered this input
      key - the key action associated with the input
    • keepFocus

      public boolean keepFocus()
      Description copied from interface: ActionEvent
      Returns whether this action event should retain focus after processing.
      Specified by:
      keepFocus in interface ActionEvent
      Returns:
      true if this event should keep focus
    • accept

      public void accept(InputProcessor inputProcessor)
      Description copied from interface: Action
      Executes this action on the given input processor.
      Specified by:
      accept in interface Action
      Specified by:
      accept in interface Consumer<InputProcessor>
      Parameters:
      inputProcessor - the input processor to operate on