Variables
Let HISTORY_SEARCH_STRING
HISTORY_SEARCH_STRING: string
Let clInput
clInput: HTMLInputElement = window.document.getElementById("tridactyl-input",) as HTMLInputElement
Let cmdline_history_current
cmdline_history_current: string = ""
Let cmdline_history_position
cmdline_history_position: number = 0
Let completionsDiv
completionsDiv: HTMLElement = window.document.getElementById("completions",) as HTMLElement
Let isVisible
isVisible: boolean = false
Const logger
logger
: Logger = new Logger("cmdline")
Create a temporary textarea and give it to fn. Remove the textarea afterwards
Useful for document.execCommand