fix: capturePane with escapes=true for color-accurate snapshots

This commit is contained in:
jay 2026-05-16 03:46:24 +02:00
parent 8ff635e6f5
commit 4b428df0a4
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ function handleStreamConnection(
const rows = typeof m.rows === "number" ? m.rows : 24; const rows = typeof m.rows === "number" ? m.rows : 24;
resizeSession(sessionId, cols, rows).catch(() => {}); resizeSession(sessionId, cols, rows).catch(() => {});
} else if (m.type === "snapshot-request") { } else if (m.type === "snapshot-request") {
capturePane({ session: sessionId }) capturePane({ session: sessionId, escapes: true })
.then((text) => { .then((text) => {
const data = Buffer.from(text).toString("base64"); const data = Buffer.from(text).toString("base64");
const s = seq.next(); const s = seq.next();