MCPcopy Index your code
hub / github.com/xtermjs/xterm.js / serializeButtonHandler

Function serializeButtonHandler

demo/client.ts:744–753  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

742}
743
744function serializeButtonHandler(): void {
745 const output = addons.serialize.instance.serialize();
746 const outputString = JSON.stringify(output);
747
748 document.getElementById('serialize-output').innerText = outputString;
749 if ((document.getElementById('write-to-terminal') as HTMLInputElement).checked) {
750 term.reset();
751 term.write(output);
752 }
753}
754
755function htmlSerializeButtonHandler(): void {
756 const output = addons.serialize.instance.serializeAsHTML();

Callers

nothing calls this directly

Calls 3

serializeMethod · 0.80
resetMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected