Skip to content

Use LF line endings in selection text#8

Open
jchristn wants to merge 1 commit into
tomlm:mainfrom
jchristn:fix/selection-line-endings
Open

Use LF line endings in selection text#8
jchristn wants to merge 1 commit into
tomlm:mainfrom
jchristn:fix/selection-line-endings

Conversation

@jchristn
Copy link
Copy Markdown

@jchristn jchristn commented Jun 1, 2026

Summary

This makes terminal selection text use \n as the internal line separator instead of StringBuilder.AppendLine(), which emits platform-dependent line endings.

On Windows, AppendLine() produces CRLF before the host application or clipboard layer has a chance to apply its own platform normalization. Keeping XTerm.NET selection text LF-only gives host integrations one clear place to decide clipboard/export line-ending policy.

Validation

  • dotnet test src\XTerm.NET.slnx
    • 585 passed, 0 failed

@jchristn jchristn marked this pull request as ready for review June 1, 2026 23:17
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.

1 participant