Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Terminal

Hierarchy

  • Terminal

Constructors

Properties

_refresh: Timeout
format: string
hasProgress: boolean
height: number
history: string[] = []
historySize: number = 2000
inputValid: boolean = true
inputValue: string = ""
inputs: WorkerInput[] = []
logo: string[] = []
logoWidth: number = 0
progressChar: number = 0
progressChars: string[] = ["\u287F", "\u28BF", "\u28FB", "\u28FD", "\u28FE", "\u28F7", "\u28EF", "\u28DF"].map(c =>colors.bold(colors.yellow(c)))
progresses: object

Type declaration

reset: boolean = false
rl: Interface
scrollY: number = -1
title: string = ""
tty: boolean

Methods

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

Generated using TypeDoc