Skip to content
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

Console output forcibly wraps output to 80 characters #172

Closed
grzegorz-wolszczak opened this issue Nov 21, 2023 · 3 comments · Fixed by #179
Closed

Console output forcibly wraps output to 80 characters #172

grzegorz-wolszczak opened this issue Nov 21, 2023 · 3 comments · Fixed by #179
Assignees
Labels
bug Something isn't working

Comments

@grzegorz-wolszczak
Copy link

After powershell plugin update to version 2.3.0 (from 2.0.10). while trying to execute powrshell script with content like (one long line)

Write-Host "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed faucibus urna. Curabitur tincidunt vitae turpis eu mattis. Vestibulum nec euismod tortor, ut dictum augue. Duis a imperdiet ipsum. Maecenas gravida justo vel convallis vehicula. Donec nec turpis et massa porttitor aliquet vitae malesuada mi. Ut sit amet lacus tincidunt, facilisis nisi ut, ornare felis. Maecenas vitae lectus ut tellus ullamcorper accumsan ut ac sem. In neque quam, lobortis cursus aliquam id, rutrum ut neque. Proin lacinia interdum purus, a porta sapien. Mauris tincidunt sagittis commodo. Quisque rhoncus sollicitudin sagittis. Nunc euismod quam eget facilisis accumsan. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam ut purus fringilla, hendrerit quam non, aliquam risus."

console ouput is wrapped .e.g

rider_colsole_wraps_code_issue

@ForNeVeR ForNeVeR added the bug Something isn't working label Nov 22, 2023
@ForNeVeR ForNeVeR self-assigned this Nov 22, 2023
@ForNeVeR
Copy link
Collaborator

Thanks for report.

I almost surely know what caused this issue (migrating from stdout-based terminal processor to the PTY-based), but I'll need to perform some experiments to decide what to do next.

Actually, we expect much better experience from PTY (and there were some features to specifically prevent this particular issue in ConPTY on Windows from appearing), but if there's no other way, then I'll consider adding an option to roll back to the previous behavior.

@ForNeVeR
Copy link
Collaborator

So far, I've reproduced the issue and I see that something weird's going on. We always seem to use winpty (an older library) instead of ConPTY. I never seen this before, didn't know it's even possible. Will investigate further.

@jeremy-morren
Copy link

I was able to solve this by adding [Console]::BufferWidth = 32766 at the start of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants