Skip to content

Commit a7f08bb

Browse files
committed
Reset terminal prompt before new command
1 parent 30a38c6 commit a7f08bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/products/products-client.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export default function ProductsPageClient({ products }: { products: ProductCont
129129

130130
// Command completed, execute it (use currentCommand to track the correct command)
131131
this.text.push(this.currentLine)
132-
132+
this.currentLine = '$ '
133+
this.cursorPos = 2
134+
133135
// Add flash effect data for the newly added line
134136
this.flashEffects = this.flashEffects || []
135137
this.flashEffects.push({

0 commit comments

Comments
 (0)