View Light

Windows Terminal hangs on exit with 'process exited with code xxx'

Enjoying the awesome new Windows Terminal? But run into weird issues once in a while where you type exit and instead of the window closing, it gives you this message: [process exited with code ####] Turns out that's by design for some reason. There's a way to stop that with a profile setting named closeOnExit so that it always closes on exit.

Add "closeOnExit": "always" to your WIndows Terminal configuration to make it so you never see that message again:

    "profiles": {
        "defaults": {
            "closeOnExit": "always"
        "list": [
            // all your profiles go here
Rating: (You must be logged in to vote)
This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: . If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.