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

Commit

Permalink
Close automatically when the Terminal is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
AtkinsSJ committed Apr 9, 2024
1 parent 7ee1318 commit c3177dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main_puter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ window.main_shell = async () => {
resolveConfigured();
}
});
terminal.on('close', () => {
console.log('Terminal closed; exiting Phoenix...');
puter.exit();
});

// FIXME: on terminal close, close ourselves

Expand Down

0 comments on commit c3177dc

Please sign in to comment.