fix: convert fridge banner newlines to \r\n for terminal display

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 22:43:00 +01:00
parent 8e90f21d91
commit 47159b9964

View File

@@ -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 {