new InputWaiter(app, manager)
Waiter to handle events related to the input.
Parameters:
Name | Type | Description |
---|---|---|
app |
HTMLApp | The main view object for CyberChef. |
manager |
Manager | The CyberChef event manager. |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
get()
-
Gets the user's input from the input textarea.
- Source:
Returns:
- Type
- string
-
set(input)
-
Sets the input in the input textarea.
Parameters:
Name Type Description input
string - Source:
Fires:
-
set_input_info(length, lines)
-
Displays information about the input.
Parameters:
Name Type Description length
number The length of the current input string
lines
number The number of the lines in the current input string
- Source:
-
input_change(e)
-
Handler for input scroll events.
Scrolls the highlighter pane to match the input textarea position and updates history state.Parameters:
Name Type Description e
event - Source:
Fires:
-
input_dragover(e)
-
Handler for input dragover events.
Gives the user a visual cue to show that items can be dropped here.Parameters:
Name Type Description e
event - Source:
-
input_dragleave(e)
-
Handler for input dragleave events.
Removes the visual cue.Parameters:
Name Type Description e
event - Source:
-
input_drop(e)
-
Handler for input drop events.
Loads the dragged data into the input textarea.Parameters:
Name Type Description e
event - Source:
-
clear_io_click()
-
Handler for clear IO events.
Resets the input, output and info areas.- Source:
Fires: