Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TeleType

Hierarchy

Index

Constructors

constructor

  • new TeleType(page: HTMLElement, fixed: boolean): TeleType
  • Parameters

    • page: HTMLElement
    • fixed: boolean

    Returns TeleType

Properties

bell

bell: any

col

col: number

curline

curline: HTMLElement

curstyle

curstyle: number

fixed

fixed: boolean

lines

lines: HTMLElement[]

ncharsout

ncharsout: number

ncols

ncols: number = 80

page

page: HTMLElement

reverse

reverse: boolean

row

row: number

scrolldiv

scrolldiv: HTMLElement

Methods

addtext

  • addtext(line: string, style: number): void
  • Parameters

    • line: string
    • style: number

    Returns void

clear

  • clear(): void
  • Returns void

ensureline

  • ensureline(): void
  • Returns void

flushline

  • flushline(): void
  • Returns void

formfeed

  • formfeed(): void
  • Returns void

loadState

  • loadState(state: any): void
  • Parameters

    • state: any

    Returns void

movePrintHead

  • movePrintHead(printing: boolean): void
  • Parameters

    • printing: boolean

    Returns void

move_cursor

  • move_cursor(col: number, row: number): void
  • Parameters

    • col: number
    • row: number

    Returns void

newline

  • newline(): void
  • Returns void

print

  • print(val: string): void
  • Parameters

    • val: string

    Returns void

resize

  • resize(columns: number): void
  • Parameters

    • columns: number

    Returns void

saveState

  • saveState(): { col: number; curstyle: number; lines: Node[]; ncharsout: number; reverse: boolean; row: number }
  • Returns { col: number; curstyle: number; lines: Node[]; ncharsout: number; reverse: boolean; row: number }

    • col: number
    • curstyle: number
    • lines: Node[]
    • ncharsout: number
    • reverse: boolean
    • row: number

scrollToBottom

  • scrollToBottom(): void
  • Returns void

setrows

  • setrows(size: number): void
  • Parameters

    • size: number

    Returns void

showPrintHead

  • showPrintHead(show: boolean): void
  • Parameters

    • show: boolean

    Returns void

Generated using TypeDoc