new OutputWaiter(app, manager)
Waiter to handle events related to the output.
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 output string from the output textarea.
- Source:
Returns:
- Type
- string
-
set(data_str, type, duration)
-
Sets the output in the output textarea.
Parameters:
Name Type Description data_str
string The output string/HTML
type
string The data type of the output
duration
number The length of time (ms) it took to generate the output
- Source:
-
set_output_info(length, lines, duration)
-
Displays information about the output.
Parameters:
Name Type Description length
number The length of the current output string
lines
number The number of the lines in the current output string
duration
number The length of time (ms) it took to generate the output
- Source:
-
save_click()
-
Handler for save click events.
Saves the current output to a file, downloaded as a URL octet stream.- Source:
-
switch_click()
-
Handler for switch click events.
Moves the current output into the input textarea.- Source:
-
undo_switch_click()
-
Handler for undo switch click events.
Removes the output from the input and replaces the input that was removed.- Source: