Skip to content

Fix SSH console line endings on Unix - #302

Open
ST3FAN-dev wants to merge 1 commit into
Osiris-Team:masterfrom
ST3FAN-dev:fix/ssh-console-crlf
Open

ST3FAN-dev wants to merge 1 commit into
Osiris-Team:masterfrom
ST3FAN-dev:fix/ssh-console-crlf

Conversation

@ST3FAN-dev

Copy link
Copy Markdown

Fixes #301

What changed

Normalize bare LF (\n) line endings to CRLF (\r\n) before writing console output to the built-in SSH terminal.

Existing CRLF sequences are preserved.

Why

On Unix/Linux hosts, forwarded Minecraft/Paper console output uses LF-only line endings. The SSH terminal receives those bare LF characters unchanged, which causes the cursor to move down without returning to column 0 ("stair-step" output).

On Windows, the issue was not visible because the forwarded output already used CRLF.

Tested

  • Debian Trixie host + original build: issue reproduced
  • Debian Trixie host + patched build: output is correct
  • Windows host + original build: output is correct
  • Windows host + patched build: output remains correct

Also tested through the built-in AutoPlug SSH console.

@imitravanu

Copy link
Copy Markdown

Hi @Osiris-Team,

I prepared 12 JUnit 5 regression tests for #302, preserving ST3FAN-dev's fix and credit. In an isolated harness, the actual production class fails 10 cases before the fix and passes all 12 afterward. This used dependency/test-runner stubs; full project CI and live SSH checks remain pending.

Would you fund this separate test-only contribution for EUR 5 gross via PayPal, payable on acceptance and merge? #301 has no bounty assigned, so I am checking before submitting a claim.

The work is Codex-assisted; I would complete project checks and account-owner review before a PR. Can payout details be shared privately?

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.

Built-in SSH console sends bare LF on Linux causing stair-step output

2 participants