Skip to content

Add reflowCursorLine option#5234

Merged
Tyriar merged 4 commits intoxtermjs:masterfrom
jtbandes:reflow-cursor-line
Dec 12, 2024
Merged

Add reflowCursorLine option#5234
Tyriar merged 4 commits intoxtermjs:masterfrom
jtbandes:reflow-cursor-line

Conversation

@jtbandes
Copy link
Copy Markdown
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

@Tyriar Tyriar marked this pull request as ready for review December 12, 2024 14:25
@Tyriar
Copy link
Copy Markdown
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
@jtbandes jtbandes deleted the reflow-cursor-line branch December 12, 2024 15:48
@jtbandes
Copy link
Copy Markdown
Contributor Author

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

@jtbandes
Copy link
Copy Markdown
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