Index

Variables

HISTORY_SEARCH_STRING

HISTORY_SEARCH_STRING: string

activeCompletions

activeCompletions: CompletionSource[] = undefined

clInput

clInput: HTMLInputElement = window.document.getElementById("tridactyl-input",) as HTMLInputElement

cmdline_history_current

cmdline_history_current: string = ""

cmdline_history_position

cmdline_history_position: number = 0

completionsDiv

completionsDiv: HTMLElement = window.document.getElementById("completions",) as HTMLElement

isVisible

isVisible: boolean = false

logger

logger: Logger = new Logger("cmdline")

Functions

applyWithTmpTextArea

  • applyWithTmpTextArea(fn: any): any
  • Create a temporary textarea and give it to fn. Remove the textarea afterwards

    Useful for document.execCommand

    Parameters

    • fn: any

    Returns any

clear

  • clear(evlistener?: boolean): void
  • Clears the command line. If you intend to close the command line after this, set evlistener to true in order to enable losing focus. Otherwise, no need to pass an argument.

    Parameters

    • Default value evlistener: boolean = false

    Returns void

enableCompletions

  • enableCompletions(): void

fillcmdline

  • fillcmdline(newcommand?: string, trailspace?: boolean, ffocus?: boolean): void
  • Parameters

    • Optional newcommand: string
    • Default value trailspace: boolean = true
    • Default value ffocus: boolean = true

    Returns void

focus

  • focus(): void

getClipboard

  • getClipboard(): any

getCompletion

  • getCompletion(): string

getContent

  • getContent(): string

hide_and_clear

  • hide_and_clear(): Promise<void>

history

  • history(n: any): void

noblur

  • noblur(e: any): Timer

process

  • process(): void

resizeArea

  • resizeArea(): void

sendExstr

  • sendExstr(exstr: any): Promise<void>

setClipboard

  • setClipboard(content: string): Promise<void>

setCursor

  • setCursor(n?: number): void

tabcomplete

  • tabcomplete(): void