From 6e60ca4cf56bf6cd3143cf9c50219d7ea6fd5b1a Mon Sep 17 00:00:00 2001 From: "craigmjackson@gmail.com" Date: Fri, 7 Aug 2026 20:35:56 -0700 Subject: [PATCH] Added CR as well as LF --- ascii_play/renderers.py | 6 +++--- buddy.sh | 0 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 buddy.sh diff --git a/ascii_play/renderers.py b/ascii_play/renderers.py index 2ffa196..4fbf6fb 100644 --- a/ascii_play/renderers.py +++ b/ascii_play/renderers.py @@ -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 @@ -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 ─────────────────────────────────────────────────────────────────── @@ -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 ────────────────────────────────────────────────────────────────── diff --git a/buddy.sh b/buddy.sh old mode 100644 new mode 100755