Home > hls.js > CaptionScreen

CaptionScreen class

Keep a CEA-608 screen of 32x15 styled characters

Signature:

export declare class CaptionScreen 

Constructors

Constructor

Modifiers

Description

(constructor)(logger)

Constructs a new instance of the CaptionScreen class

Properties

Property

Modifiers

Type

Description

currRow

number

lastOutputScreen

CaptionScreen | null

logger

CaptionsLogger

nrRollUpRows

number | null

rows

Row[]

Methods

Method

Modifiers

Description

backSpace()

clearToEndOfRow()

copy(other)

equals(other)

getDisplayText(asOneRow)

Get all non-empty rows with as unicode text.

getTextAndFormat()

insertChar(char)

Insert a character (without styling) in the current row.

isEmpty()

moveCursor(relPos)

reset()

rollUp()

setBkgData(bkgData)

Set background/extra foreground, but first do back_space, and then insert space (backwards compatibility).

setCursor(absPos)

setPAC(pacData)

setPen(styles)

setRollUpRows(nrRows)