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

Add reflowCursorLine option #5234

Merged
merged 4 commits into from
Dec 12, 2024
Merged

Conversation

jtbandes
Copy link
Contributor

@jtbandes jtbandes commented Dec 6, 2024

Resolves #5213

cc @Tyriar @jerch – per our discussions on #5213 this is adding an option to enable wrapping of the line with the cursor. This is my first time trying to modify xterm so please let me know if you have any suggestions for improvements.

I also updated the demo app with a checkbox to disable the real terminal, so it was easier for me to enable the fake one for testing (because a real shell will automatically wrap its prompt line as discussed in #5213 (comment)).

It looks like this results in the cursor being in a different place than where it started. If you have any ideas for how to resolve this, let me know. Or maybe this behavior is expected?

Untitled.mov

src/common/buffer/BufferReflow.ts Outdated Show resolved Hide resolved
src/common/buffer/Buffer.ts Outdated Show resolved Hide resolved
@Tyriar Tyriar marked this pull request as ready for review December 12, 2024 14:25
@Tyriar
Copy link
Member

Tyriar commented Dec 12, 2024

Looks great, just need to test it 👍

@Tyriar Tyriar added this to the 6.0.0 milestone Dec 12, 2024
@Tyriar Tyriar self-assigned this Dec 12, 2024
@Tyriar Tyriar enabled auto-merge December 12, 2024 14:30
@Tyriar Tyriar merged commit e826f6b into xtermjs:master Dec 12, 2024
12 checks passed
@jtbandes jtbandes deleted the reflow-cursor-line branch December 12, 2024 15:48
@jtbandes
Copy link
Contributor Author

@Tyriar thanks! Any idea when this will be published in a new beta release?

@jtbandes
Copy link
Contributor Author

jtbandes commented Dec 17, 2024

Actually it looks like it tried to publish, but the publish job failed: https://github.com/xtermjs/xterm.js/actions/runs/12298607666/job/34322412357

Related: #5252 but this doesn't fix the root cause of the 404 error...not sure what that error means. Maybe flakiness on the NPM side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add setting to enable reflow for the cursor line
2 participants