MCPcopy Create free account
hub / github.com/codeaashu/claude-code / a

Function a

src/server/web/public/terminal.js:1207–1211  ·  view source on GitHub ↗
(e3, t3, i3, s3, r2, n2)

Source from the content-addressed store, hash-verified

1205 return e3 > t3 ? "A" : "B";
1206 }
1207 function a(e3, t3, i3, s3, r2, n2) {
1208 let o2 = e3, a2 = t3, h2 = "";
1209 for (; o2 !== i3 || a2 !== s3; ) o2 += r2 ? 1 : -1, r2 && o2 > n2.cols - 1 ? (h2 += n2.buffer.translateBufferLineToString(a2, false, e3, o2), o2 = 0, e3 = 0, a2++) : !r2 && o2 < 0 && (h2 += n2.buffer.translateBufferLineToString(a2, false, 0, e3 + 1), o2 = n2.cols - 1, e3 = o2, a2--);
1210 return h2 + n2.buffer.translateBufferLineToString(a2, false, e3, o2);
1211 }
1212 function h(e3, t3) {
1213 const i3 = t3 ? "O" : "[";
1214 return s2.C0.ESC + i3 + e3;

Calls 1

Tested by

no test coverage detected