const result = await terminal.run("npm test");
console.log(result.busy);result = terminal.run("npm test")
print(result["busy"])linestringrequiredLine to send to the terminal. An occupied terminal rejects input rather than queuing it behind a running command.
The call updates the local busy state from the response. Poll output() to collect the command's output and exit status.