-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-u When scanning some sites, there may be a problem with output without line breaks. #5122
Comments
In microsoft/terminal#17159 @King-Mr helped confirm that this isn't exclusive to the Windows Terminal, but also repros in This looks to me like either a newline mode not being set right, or someone only emitting |
Thank you for sharing, but I don't understand why everyone would have this problem if it's the situation you described. But it seems that only a very small number of people have this problem. And in my test, it seems to be related to the number of characters in the command line. It seems that when the output is abnormal at a certain time, the same command with a space will output normally. |
I may be completely wrong, but my guess would be that this has something to do with pipes (assuming you're using something like that). The first program in the pipeline sets some console modes, outputs some content, and then resets the modes back to what they were initially. But part way through that process, the second program starts reading the first one's output, and does its own thing with the content before writing it out again. If the first program ends while the second is still busy, the second one may find itself using console modes that it wasn't expecting. The exact behavior may depend on things like buffer size, and the load on the system, so that might explain why you don't always see the problem, and it doesn't affect everyone. But note the one screenshot above where the logo is fine, and the first two warnings are fine, and it's only from the third warning onwards that the linefeeds are wrong. The break at that point could be explained by the first program in the pipeline having just closed. Again this is just a theory, and I'm not positive I've got my facts right regarding Windows console modes in a pipeline, but it's at least a possible explanation for what you're seeing here. |
I wanted to chip in and say I am not using pipes, but am experiencing the same issue, on Windows 11. |
When I use the -u parameter to scan a single site, I will find that the output of some sites does not wrap.
The text was updated successfully, but these errors were encountered: