currently the process.exit() is needed for node to end correctly, cause the StdIn Interface is not correctly closed.
Why do you want it?
Implement the GUI correctly even during close.
How do you implement it?
The changes needed can be seen here. I'm not sure if all components are working, but a small implementation does not need the on("exit") process.exit() structure anymore
What do you want?
currently the process.exit() is needed for node to end correctly, cause the StdIn Interface is not correctly closed.
Why do you want it?
Implement the GUI correctly even during close.
How do you implement it?
The changes needed can be seen here. I'm not sure if all components are working, but a small implementation does not need the on("exit") process.exit() structure anymore
https://github.com/Elius94/console-gui-tools/compare/main...haeferer:console-gui-tools:main
Now this code works
you can even remove these lines, if you dont want to clear the console on exit
Are you interested in developing this feature?