mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-11 10:57:07 +00:00
test(terminal): type the reproduction input observer
This commit is contained in:
@@ -11,7 +11,13 @@ function mountTerminal() {
|
||||
root.append(host);
|
||||
document.body.append(root);
|
||||
const runtime = new TerminalEmulatorRuntime({ isMac: false });
|
||||
runtime.setCallbacks({ callbacks: { onInput: (data) => inputs.push(data) } });
|
||||
runtime.setCallbacks({
|
||||
callbacks: {
|
||||
onInput: (data) => {
|
||||
inputs.push(data);
|
||||
},
|
||||
},
|
||||
});
|
||||
runtime.mount({ root, host, initialSnapshot: null, scrollback: 1000, theme: {} });
|
||||
return {
|
||||
inputs,
|
||||
|
||||
Reference in New Issue
Block a user