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() state := newFridgeState()
// Boot banner. // Boot banner — convert \n to \r\n for terminal display.
fmt.Fprint(rw, bootBanner()) banner := strings.ReplaceAll(bootBanner(), "\n", "\r\n")
fmt.Fprint(rw, banner)
for { for {
if _, err := fmt.Fprint(rw, "FridgeOS> "); err != nil { if _, err := fmt.Fprint(rw, "FridgeOS> "); err != nil {