MCPcopy
hub / github.com/xtermjs/xterm.js / fromCharData

Method fromCharData

src/common/buffer/CellData.ts:16–20  ·  view source on GitHub ↗

Helper to create CellData from CharData.

(value: CharData)

Source from the content-addressed store, hash-verified

14export class CellData extends AttributeData implements ICellData {
15 /** Helper to create CellData from CharData. */
16 public static fromCharData(value: CharData): CellData {
17 const obj = new CellData();
18 obj.setFromCharData(value);
19 return obj;
20 }
21 /** Primitives from terminal buffer. */
22 public content = 0;
23 public fg = 0;

Callers 13

Terminal.test.tsFile · 0.80
createEmptyLineDataFunction · 0.80
lineDataFunction · 0.80
stringToRowFunction · 0.80
stringArrayToRowFunction · 0.80
BufferLine.test.tsFile · 0.80
populateFunction · 0.80
Buffer.test.tsFile · 0.80
BufferClass · 0.80

Calls 1

setFromCharDataMethod · 0.95

Tested by 5

createEmptyLineDataFunction · 0.64
lineDataFunction · 0.64
stringToRowFunction · 0.64
stringArrayToRowFunction · 0.64
populateFunction · 0.64