mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-07-21 22:44:19 +02:00
Try to fix web-shell when called from Godot
This commit is contained in:
parent
a1bb607c7e
commit
5ff4ca6c28
7 changed files with 11 additions and 11 deletions
web/web-shell
|
@ -112,9 +112,10 @@ function boot() {
|
|||
emulator = window["emulator"] = new V86Starter(config)
|
||||
|
||||
// Wait for the emulator to start, then resolve the promise.
|
||||
var interval = setInterval(() => {
|
||||
var interval = setInterval(async () => {
|
||||
if (emulator.is_running()) {
|
||||
run("PS1='# '")
|
||||
await run("PS1='# '")
|
||||
await run("stty -echo")
|
||||
clearInterval(interval)
|
||||
resolve(true)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue