Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
properly exit terminal take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lfuelling committed Jul 27, 2019
1 parent 8b18c8d commit 32c5d8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions html/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ $(function () {
greetings: 'Welcome to Redpill OS v0.1',
prompt: event.data.machine.user + '@' + event.data.machine.hostname + ' $ '
});
console.log("Terminal initialized!")
} else {
term.purge();
term.destroy();
console.log('Terminal destroyed!');
}
} else if (event.data.type === "terminalOut") {
console.log('terminalOut received!');
if (term !== undefined) {
term.echo(event.data.output);
}
Expand Down

0 comments on commit 32c5d8c

Please sign in to comment.