Skip to content

Commit

Permalink
wip-try-forcing-input-into-terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
deribaucourt committed Sep 18, 2024
1 parent bfa190a commit 8916f91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,18 @@
"source.fixAll.eslint": "explicit"
},
"jest.jestCommandLine": "node_modules/.bin/jest",
"jest.monitorLongRun": 300000
"jest.monitorLongRun": 300000,
"python.autoComplete.extraPaths": [
"${workspaceFolder}/yocto-build/sources/poky/bitbake/lib",
"${workspaceFolder}/yocto-build/sources/poky/meta/lib"
],
"python.analysis.extraPaths": [
"${workspaceFolder}/yocto-build/sources/poky/bitbake/lib",
"${workspaceFolder}/yocto-build/sources/poky/meta/lib"
],
"files.associations": {
"*.txt": "diff",
"*.conf": "bitbake",
"*.inc": "bitbake"
}
}
3 changes: 3 additions & 0 deletions client/src/ui/BitbakeTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class BitbakePseudoTerminal implements vscode.Pseudoterminal {
}

handleInput (data: string): void {
logger.warn('EDRT Received input:' + data)
if (this.process === undefined) {
this.closeEmitter.fire(0)
if (!this.isTaskTerminal()) { bitbakeTerminals.splice(bitbakeTerminals.indexOf(this.parentTerminal as BitbakeTerminal), 1) }
Expand All @@ -113,6 +114,8 @@ export class BitbakePseudoTerminal implements vscode.Pseudoterminal {
void this.bitbakeDriver.killBitbake()
}
}
process?.stdin.write(data)
if ((process?.send) != null) { process?.send(data) }
}
}

Expand Down

0 comments on commit 8916f91

Please sign in to comment.