From 47159b99643116adedd8d65ad27c2781240f1c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 14 Feb 2026 22:43:00 +0100 Subject: [PATCH] fix: convert fridge banner newlines to \r\n for terminal display Co-Authored-By: Claude Opus 4.6 --- internal/shell/fridge/fridge.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/shell/fridge/fridge.go b/internal/shell/fridge/fridge.go index 2078578..f88f1c6 100644 --- a/internal/shell/fridge/fridge.go +++ b/internal/shell/fridge/fridge.go @@ -30,8 +30,9 @@ func (f *FridgeShell) Handle(ctx context.Context, sess *shell.SessionContext, rw state := newFridgeState() - // Boot banner. - fmt.Fprint(rw, bootBanner()) + // Boot banner — convert \n to \r\n for terminal display. + banner := strings.ReplaceAll(bootBanner(), "\n", "\r\n") + fmt.Fprint(rw, banner) for { if _, err := fmt.Fprint(rw, "FridgeOS> "); err != nil {