Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ascii_play/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def render_half(frame: np.ndarray, cols: int, rows: int,
bg = _bg(fb[:,0], fb[:,1], fb[:,2]).reshape(rows, cols)

cells = np.char.add(np.char.add(fg.astype(str), bg.astype(str)), UPPER_HALF)
return move_home() + "\n".join("".join(row) for row in cells) + reset()
return move_home() + "\r\n".join("".join(row) for row in cells) + reset()


# ── ASCII density
Expand All @@ -71,7 +71,7 @@ def render_ascii(frame: np.ndarray, cols: int, rows: int,
fg = _fg(flat[:,0], flat[:,1], flat[:,2]).reshape(rows, cols)

cells = np.char.add(fg.astype(str), char_grid.astype(str))
return move_home() + "\n".join("".join(row) for row in cells) + reset()
return move_home() + "\r\n".join("".join(row) for row in cells) + reset()


# ── Braille ───────────────────────────────────────────────────────────────────
Expand Down Expand Up @@ -118,7 +118,7 @@ def render_braille(frame: np.ndarray, cols: int, rows: int,
fg = _fg(flat[:,0], flat[:,1], flat[:,2]).reshape(rows, cols)

cells = np.char.add(fg.astype(str), char_grid.astype(str))
return move_home() + "\n".join("".join(row) for row in cells) + reset()
return move_home() + "\r\n".join("".join(row) for row in cells) + reset()


# ── Registry ──────────────────────────────────────────────────────────────────
Expand Down
Empty file modified buddy.sh
100644 → 100755
Empty file.