fix: capturePane with escapes=true for color-accurate snapshots
This commit is contained in:
parent
8ff635e6f5
commit
4b428df0a4
|
|
@ -163,7 +163,7 @@ function handleStreamConnection(
|
|||
const rows = typeof m.rows === "number" ? m.rows : 24;
|
||||
resizeSession(sessionId, cols, rows).catch(() => {});
|
||||
} else if (m.type === "snapshot-request") {
|
||||
capturePane({ session: sessionId })
|
||||
capturePane({ session: sessionId, escapes: true })
|
||||
.then((text) => {
|
||||
const data = Buffer.from(text).toString("base64");
|
||||
const s = seq.next();
|
||||
|
|
|
|||
Loading…
Reference in New Issue