grow helpers improvement

This commit is contained in:
2023-09-05 00:58:08 +02:00
parent 673abd49b2
commit 7b14e98658
25 changed files with 359 additions and 136 deletions
+13
View File
@@ -0,0 +1,13 @@
/** @param {import(".").NS } ns */
const doc = eval('document');
export async function main(ns) {
// ns.disableLog('ALL');
const terminalInput = doc.getElementById("terminal-input");
const handler = Object.keys(terminalInput)[1];
terminalInput.value = "COMMAND";
terminalInput[handler].onChange({ target: terminalInput });
terminalInput[handler].onKeyDown({ key: 'Enter', preventDefault: () => null });
}