Skip to content

Commit 8f2423f

Browse files
committed
welcome: one blank row above the initial bar (gap, eaten by first submit)
1 parent 0d97ec3 commit 8f2423f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/threecode.nim‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,15 @@ proc main() =
353353
if prof.name == "":
354354
prof = bootstrapProvider(editor)
355355
session.profileName = prof.name
356-
# Draw the initial token bar + bright cyan prompt at zero values.
357-
# From here on the bar+prompt are *always* visible — `emitUserSubmit`
356+
# Draw the initial token bar + bright cyan prompt at zero values,
357+
# with one blank row of breathing room above the bar — same shape
358+
# as the typing-ready state `endTurn` leaves between turns. From
359+
# here on the bar+prompt are *always* visible — `emitUserSubmit`
358360
# repaints them dim (as the receipt) and re-echoes input on each
359361
# user submit, `streamHttp` slides them down per content line, etc.
362+
stdout.write "\n"
360363
paintBarPrompt(liveLabel("", 0), BrightPromptColor)
364+
currentBarHasGap = true
361365
if resume:
362366
stdout.write "\n"
363367
stdout.styledWriteLine styleDim, &"● resumed {sessionIdFromPath(session.savePath)}", resetStyle

0 commit comments

Comments
 (0)