input-terminal
    Preparing search index...

    Class TermListeners

    Handles keyboard and selection events for the terminal.

    Index

    Constructors

    Methods

    • Update input and move history to the previous command.

      Parameters

      • event: Event

        the event that triggered the action

      Returns void

    • Update input and move history to the next command.

      Parameters

      • event: Event

        the event that triggered the action

      Returns void

    • Attempt to autocomplete the current input in the terminal.

      Parameters

      • event: Event

        the event that triggered the action

      Returns void

    • Execute with the current terminal input.

      Parameters

      • event: Event

        the event that triggered the action

      Returns void

    • Attaches listeners to the terminal's input element.

      Parameters

      • OptionalpreviousKey: string = "ArrowUp"

        the key used to select the previous command; defaults to ArrowUp

      • OptionalnextKey: string = "ArrowDown"

        the key used to select the next command; defaults to ArrowDown

      Returns void