8000 fix: use CRLF for newlines in raw terminal mode by wilmoore · Pull Request #6 · wilmoore/p · GitHub
[go: up one dir, main page]

Skip to content

fix: use CRLF for newlines in raw terminal mode - #6

Merged
wilmoore merged 1 commit into
mainfrom
fix/raw-mode-newline-rendering
Feb 8, 2026
Merged

wilmoore merged 1 commit into
mainfrom
fix/raw-mode-newline-rendering

Conversation

@wilmoore
@wilmoore wilmoore commented Feb 8, 2026
Copy link
Copy Markdown
Owner

Summary

Fix session list rendering appearing scattered/diagonal instead of vertical.

Root Cause

In raw terminal mode, \n (LF) only moves the cursor down one row without returning to column 0. Each line was starting where the previous line ended horizontally.

Fix

Use \r\n (CR+LF) instead of \n for proper line breaks in raw mode.

Test Plan

  1. Run ./p with multiple tmux sessions
  2. Verify sessions display in a clean vertical list
  3. Verify arrow key navigation still works
  4. Verify type-to-filter still works

In raw mode, LF (\n) only moves the cursor down without returning
to column 0. Use CR+LF (\r\n) for proper line breaks.
@wilmoore
wilmoore merged commit 1a08b91 into < 79FB span class="css-truncate-target">main Feb 8, 2026
@wilmoore
wilmoore deleted the fix/raw-mode-newline-rendering branch February 8, 2026 02:31
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

0