End of output occasionally missing with "closeOnExit": "never"
#18552
Labels
Area-Server
Down in the muck of API call servicing, interprocess communication, eventing, etc.
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Product-Terminal
The new Windows Terminal.
Milestone
Windows Terminal version
1.23.10353.0
Windows build number
10.0.22631.0
Other Software
Build one of those (as is more convenient):
Steps to reproduce
In your default profile settings, set Advanced -> Profile termination behavior to "Never close automatically"
JSON equivalent:
Build one of the source codes provided above
Double-click on the compiled exe file (do not run it from a shell)
Expected Behavior
The output should always end with the following lines:
Restarting the process by pressing Enter any number of times should not change this outcome.
Actual Behavior
Most of the time, the behavior is as expected: the last line reads
LINE: 20000
.However, after restarting the execution several times by pressing Enter, you can end up on an incomplete output, such as:
In the case of the C++ app, I even got the output cut in the middle of a line:
Getting this output may require 10 to 20 attempts, so please be patient. 😅
The problem is not reproducible when looping from a bat file:
However, a bat file which just runs the exe will reproduce the problem.
The text was updated successfully, but these errors were encountered: