CaptionScreen
Keep a CEA-608 screen of 32x15 styled characters
Constructor Summary
| Public Constructor | ||
| public |  | |
Member Summary
| Public Members | ||
| public | currRow: * | |
| public |  | |
| public | logger: * | |
| public | nrRollUpRows: * | |
| public | rows: *[] | |
Method Summary
| Public Methods | ||
| public |  | |
| public |  | |
| public | copy(other: CaptionScreen) | |
| public | equals(other: CaptionScreen): boolean | |
| public | getDisplayText(asOneRow: boolean): * Get all non-empty rows with as unicode text. | |
| public | getTextAndFormat(): * | |
| public | insertChar(char: number) Insert a character (without styling) in the current row. | |
| public |  | |
| public | moveCursor(relPos: number) | |
| public | reset() | |
| public | rollUp() | |
| public | setBkgData(bkgData: Partial) Set background/extra foreground, but first do back_space, and then insert space (backwards compatibility). | |
| public |  | |
| public | setPAC(pacData: PACData) | |
| public | setPen(styles: Partial) | |
| public | setRollUpRows(nrRows: undefined) | |
Public Constructors
public constructor() source
Public Members
public currRow: * source
public lastOutputScreen: * source
public logger: * source
public nrRollUpRows: * source
public rows: *[] source
Public Methods
public backSpace() source
public clearToEndOfRow() source
public copy(other: CaptionScreen) source
Params:
| Name | Type | Attribute | Description | 
| other | CaptionScreen | 
public equals(other: CaptionScreen): boolean source
Params:
| Name | Type | Attribute | Description | 
| other | CaptionScreen | 
public getDisplayText(asOneRow: boolean): * source
Get all non-empty rows with as unicode text.
Params:
| Name | Type | Attribute | Description | 
| asOneRow | boolean | 
Return:
| * | 
public insertChar(char: number) source
Insert a character (without styling) in the current row.
Params:
| Name | Type | Attribute | Description | 
| char | number | 
public reset() source
public rollUp() source
public setBkgData(bkgData: Partial) source
Set background/extra foreground, but first do back_space, and then insert space (backwards compatibility).
Params:
| Name | Type | Attribute | Description | 
| bkgData | Partial | 
public setPAC(pacData: PACData) source
Params:
| Name | Type | Attribute | Description | 
| pacData | PACData | 
public setPen(styles: Partial) source
Params:
| Name | Type | Attribute | Description | 
| styles | Partial | 
 
    
  