From 5c3d00e2a4305a3a144cf6d005b163e6f2500bd0 Mon Sep 17 00:00:00 2001 From: Chris Hendrickson Date: Sat, 25 Apr 2026 14:20:54 -0400 Subject: [PATCH] fix(tui): modal header background color bleed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace writeLine with write for the header row — writeLine appends a newline which causes the active background color to flood the remainder of the line and bleed into subsequent rows. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- packages/kanban/lib/src/commands/tui_command.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kanban/lib/src/commands/tui_command.dart b/packages/kanban/lib/src/commands/tui_command.dart index 788917a..e16dab8 100644 --- a/packages/kanban/lib/src/commands/tui_command.dart +++ b/packages/kanban/lib/src/commands/tui_command.dart @@ -1402,11 +1402,11 @@ class TuiCommand extends DewCommand { // Header bar final headerText = ' ✏ Edit ${es.ticket.id} '; - final paddedHeader = headerText.padRight(innerW); at(modalTop + 1, modalLeft + 1, () { console.setForegroundColor(ConsoleColor.black); console.setBackgroundColor(accentColor); - console.writeLine(paddedHeader.substring(0, min(paddedHeader.length, innerW))); + final hText = headerText.padRight(innerW).substring(0, innerW); + console.write(hText); console.resetColorAttributes(); });