Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebdaTerminal

Hierarchy

  • Terminal
    • WebdaTerminal

Constructors

  • new WebdaTerminal(wo: WorkerOutput, versions: any, logo?: string[], level?: WorkerLogLevel, format?: string, tty?: boolean): WebdaTerminal

Properties

_refresh: Timeout
format: string
hasProgress: boolean
height: number
history: string[]
historySize: number
inputValid: boolean
inputValue: string
inputs: WorkerInput[]
logo: string[]
logoWidth: number
progressChar: number
progressChars: string[]
progresses: object

Type declaration

  • [key: string]: WorkerProgress
reset: boolean
rl: Interface
scrollY: number
title: string
tty: boolean
versions: any
wo: WorkerOutput

Methods

  • clearScreen(): void
  • close(): void
  • displayBar(ratio: any, barlen: any): string
  • displayFooter(): string
  • displayHistory(lines: number, complete?: boolean): string
  • displayProgress(p: WorkerProgress): string
  • displayScreen(): Promise<void>
  • displayString(str: string, limit?: number): any
  • displayTitle(): string
  • getBar(size: number, complete: boolean): string
  • getFooterSize(): number
  • getLogo(): string[]
  • getTrueLength(str: any): number
  • handleTitleMessage(msg: WorkerMessage): void
  • pushHistory(line: any): void
  • resetTerm(...args: any[]): void
  • router(msg: WorkerMessage): Promise<void>
  • scrollDown(increment: number): void
  • scrollUp(increment: number): void
  • setDefaultLogo(): void
  • setLogo(logo: string[]): void
  • setTitle(title?: string): void
  • stripColorString(str: any, limit: number): string
  • webdaize(str: any): any

Generated using TypeDoc