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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user