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

Function populate

src/common/buffer/BufferLine.test.ts:513–518  ·  view source on GitHub ↗
(line: BufferLine)

Source from the content-addressed store, hash-verified

511 });
512 describe('correct fullwidth handling', () => {
513 function populate(line: BufferLine): void {
514 const cell = CellData.fromCharData([1, '¥', 2, '¥'.charCodeAt(0)]);
515 for (let i = 0; i < line.length; i += 2) {
516 line.setCell(i, cell);
517 }
518 }
519 it('insert - wide char at pos', () => {
520 const line = new TestBufferLine(10, CellData.fromCharData([DEFAULT_ATTR, NULL_CELL_CHAR, 0, NULL_CELL_CODE]), false);
521 populate(line);

Callers 1

BufferLine.test.tsFile · 0.85

Calls 2

fromCharDataMethod · 0.80
setCellMethod · 0.65

Tested by

no test coverage detected