Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lindongchen committed Jun 18, 2024
1 parent 259b6b8 commit c56ff3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gui/src/assets/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1046,4 +1046,7 @@ fieldset{
}
.p-terminal-prompt-value,.p-terminal-command-value{
color: #f5f5f5 !important;
}
.p-terminal-command-response{
white-space: pre;
}
5 changes: 4 additions & 1 deletion gui/src/views/apps/core/TermContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ const commandHandlerCore = async (args) => {
console.log(args)
let command = await Command.sidecar("bin/cli", args);
await command.spawn();
let rst = ""
command.stdout.on('data', line => {
TerminalService.emit('response', line);
console.log(line)
rst += line;
TerminalService.emit('response', rst);
});
}
Expand Down

0 comments on commit c56ff3d

Please sign in to comment.