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

lastTheme

lastTheme: string

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

enableCompletions

  • enableCompletions(): void

fillcmdline

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

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

    Returns void

focus

  • focus(): void

getClipboard

  • getClipboard(): any

getCompletion

  • getCompletion(): 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): void

setCursor

  • setCursor(n?: number): void

tabcomplete

  • tabcomplete(): void