1
0
forked from sent/waves
waves-fork/public/assets/g/win11/console.js
2025-04-09 17:11:14 -05:00

25 lines
466 B
JavaScript

window.pythonRunner = new BrythonRunner({
stdout: {
write(content) {
window.pythonResult = content;
window.pythonErr = 0;
},
flush() {},
},
stderr: {
write(content) {
window.pythonResult = content;
window.pythonErr = 1;
},
flush() {},
},
stdin: {
async readline() {
var userInput = prompt();
console.log("Received StdIn: " + userInput);
return userInput;
},
},
onInit() {},
});