Exit only once the renderer has restored the terminal
OpenTUI 0.8 restores the terminal after destroy() returns; renderer.closed says when it is done.
This commit is contained in:
1 parent
ba157ccab7
commit
1399112379
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -637,7 +637,7 @@ export function App(props: { readonly session: T3Session; readonly config: T3tui
|
||||
const quit = () => {
|
||||
void session.stop().finally(() => {
|
||||
renderer.destroy();
|
||||
process.exit(0);
|
||||
void renderer.closed.finally(() => process.exit(0));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user