-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
echo newline:false does not wrap text until resize #952
Comments
Thanks for the report, here is repro https://codepen.io/jcubic/pen/wvbmpgX This is another problem with |
You can fix this with a hack: for(let i = 0; i < 100; i+=1) {
term.echo('qwerty', { newline: false });
term.update(-1, ...term.get_output(true).pop());
} This will force having a clean partial render (partial is the output without newline), by refreshing the last line after each echo. I will probably do something similar inside the library, but without creating garbage from |
It seems this don't solve the problem. |
It's a challenging bug, it may take a while to fix. I'm not sure how to handle one edge case. |
The bug was fixed and released with version 2.42.1. |
Issue summary
When I use multiple
term.echo('qwerty', {newline:false}');
it correctly doesnt add a newline, but it incorrectly doesnt process newlines until I resize the window
Expected behavior
Should not have to resize window for newline to appear
Actual behavior
Trails off to the right
Steps to reproduce
for(let i = 0; i < 100; i+=1)
term.echo('qwerty', {newline:false}');
Browser and OS
All browsers
Additional notes
before resize
![image](https://private-user-images.githubusercontent.com/166300150/341597635-b65d1277-fbaa-462b-8d63-41589a8318d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mjk5MDksIm5iZiI6MTczODkyOTYwOSwicGF0aCI6Ii8xNjYzMDAxNTAvMzQxNTk3NjM1LWI2NWQxMjc3LWZiYWEtNDYyYi04ZDYzLTQxNTg5YTgzMThkNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxMjAwMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDk2ODQ1NDIyYjA2NmNhNDdjNDA0OTJmOTk4ZGExYzk2MGM4NzU4MmM0ZTY2MjhjMGM1NWExMjZjYWQwYjRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.OidJjSBa7-veNPAeZ3bje_Rac6Xv357Gaqz5ak1Rbec)
![image](https://private-user-images.githubusercontent.com/166300150/341597683-0c08bbee-2be0-4685-bfdc-d1607d46e3ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mjk5MDksIm5iZiI6MTczODkyOTYwOSwicGF0aCI6Ii8xNjYzMDAxNTAvMzQxNTk3NjgzLTBjMDhiYmVlLTJiZTAtNDY4NS1iZmRjLWQxNjA3ZDQ2ZTNhYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxMjAwMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjJkNzY5ZGI4YjlmMTM3MmRmNzAwM2I3MDY5NTllZTI4MWNmYWI1YjQ0MjU2NzA0YTkyM2UzMzlmYmM0YzU0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.90LG7E7AC7Uhw-CF4__5mCDhL5KdFF68eCN1xePHAfo)
after resize
The text was updated successfully, but these errors were encountered: