mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-03 19:04:40 +01:00
Make web-shell work when changing directories
This commit is contained in:
parent
2f115c99d4
commit
a1bb607c7e
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,7 @@ function run(cmd) {
|
||||||
|
|
||||||
if (output.endsWith("# ")) {
|
if (output.endsWith("# ")) {
|
||||||
emulator.remove_listener("serial0-output-char", listener)
|
emulator.remove_listener("serial0-output-char", listener)
|
||||||
let outputWithoutPrompt = output.slice(0, -4)
|
let outputWithoutPrompt = output.slice(0, -3)
|
||||||
let outputWithoutFirstLine = outputWithoutPrompt.slice(
|
let outputWithoutFirstLine = outputWithoutPrompt.slice(
|
||||||
outputWithoutPrompt.indexOf("\n") + 1
|
outputWithoutPrompt.indexOf("\n") + 1
|
||||||
)
|
)
|
||||||
|
@ -114,6 +114,7 @@ function boot() {
|
||||||
// Wait for the emulator to start, then resolve the promise.
|
// Wait for the emulator to start, then resolve the promise.
|
||||||
var interval = setInterval(() => {
|
var interval = setInterval(() => {
|
||||||
if (emulator.is_running()) {
|
if (emulator.is_running()) {
|
||||||
|
run("PS1='# '")
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
resolve(true)
|
resolve(true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue