Skip to content

Commit c561fbe

Browse files
committed
Filter out _that_ Device Attributes query
1 parent b2815e3 commit c561fbe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/client.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ async function createTerminal(element: HTMLElement, toDispose: DisposableCollect
155155
}
156156
});
157157

158+
let buffer = '';
159+
term.onData((data) => {
160+
buffer += data;
161+
162+
const unwantedSequence = '\x1b[0;276;0c';
163+
if (buffer.includes(unwantedSequence)) {
164+
buffer = buffer.replaceAll(unwantedSequence, '');
165+
}
166+
167+
term.write(buffer);
168+
buffer = '';
169+
});
170+
158171
toDispose.push(term);
159172

160173
window.terminal = term;

0 commit comments

Comments
 (0)