MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getJoinedCharacters

Method getJoinedCharacters

src/server/web/public/terminal.js:1738–1759  ·  view source on GitHub ↗
(e4)

Source from the content-addressed store, hash-verified

1736 return false;
1737 }
1738 getJoinedCharacters(e4) {
1739 if (0 === this._characterJoiners.length) return [];
1740 const t3 = this._bufferService.buffer.lines.get(e4);
1741 if (!t3 || 0 === t3.length) return [];
1742 const i3 = [], s3 = t3.translateToString(true);
1743 let r2 = 0, n2 = 0, a2 = 0, h2 = t3.getFg(0), c2 = t3.getBg(0);
1744 for (let e5 = 0; e5 < t3.getTrimmedLength(); e5++) if (t3.loadCell(e5, this._workCell), 0 !== this._workCell.getWidth()) {
1745 if (this._workCell.fg !== h2 || this._workCell.bg !== c2) {
1746 if (e5 - r2 > 1) {
1747 const e6 = this._getJoinedRanges(s3, a2, n2, t3, r2);
1748 for (let t4 = 0; t4 < e6.length; t4++) i3.push(e6[t4]);
1749 }
1750 r2 = e5, a2 = n2, h2 = this._workCell.fg, c2 = this._workCell.bg;
1751 }
1752 n2 += this._workCell.getChars().length || o.WHITESPACE_CELL_CHAR.length;
1753 }
1754 if (this._bufferService.cols - r2 > 1) {
1755 const e5 = this._getJoinedRanges(s3, a2, n2, t3, r2);
1756 for (let t4 = 0; t4 < e5.length; t4++) i3.push(e5[t4]);
1757 }
1758 return i3;
1759 }
1760 _getJoinedRanges(t3, i3, s3, r2, n2) {
1761 const o2 = t3.substring(i3, s3);
1762 let a2 = [];

Callers 2

createRowMethod · 0.80
_updateModelMethod · 0.80

Calls 10

_getJoinedRangesMethod · 0.95
getFgMethod · 0.80
getBgMethod · 0.80
getTrimmedLengthMethod · 0.80
loadCellMethod · 0.80
getMethod · 0.65
translateToStringMethod · 0.45
getWidthMethod · 0.45
pushMethod · 0.45
getCharsMethod · 0.45

Tested by

no test coverage detected