Repository navigation
fix(terminal): say a dead pane is dead, and close it on Enter - #621
Merged
Merged
Conversation
A pane kept open after an unclean exit kept its cursor and looked like a live prompt. Under cmd.exe a bare `exit` after a failed command returns its error level, so an ordinary `exit` left such a pane behind. The terminal thread now writes "[process exited with code N. Press Enter to close]" under the last output, and Enter in an exited session closes its pane. Closes #620
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #620
A pane kept open after an unclean exit looked alive: cursor drawn, no sign
the process was gone. Under
cmd.exea bareexitafter a failed commandreturns its error level (9009 for an unknown command), so an ordinary
exithit this.pty: the waiter forwards the exit code; on an unclean exit the terminalthread writes
[process exited with code N. Press Enter to close]afterthe drain, before the final snapshot.
core:TerminalInputof\rinto anExitedsession closes its pane;any other input stays a no-op.
workspace/tabs-and-splits.md) andCHANGELOG.mdupdated.Tests:
an_unclean_exit_writes_its_code_under_the_last_screen(real PTY,exit 3),exit_banner_names_the_code_and_how_to_close, and the corelifecycle test now asserts Enter closes the dead pane. Ran fmt, workspace
clippy, and tests for core, pty and app locally on Windows.