From 71fb1b91736a938a3df8831bbab8946a45bca7fd Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 11 Nov 2025 20:43:17 +0100 Subject: [PATCH] Put each instruction on its own line and add file drop hint --- packages/coding-agent/src/tui-renderer.ts | 28 ++++++++++++----------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/coding-agent/src/tui-renderer.ts b/packages/coding-agent/src/tui-renderer.ts index 9a6ac2e8..88a2d74a 100644 --- a/packages/coding-agent/src/tui-renderer.ts +++ b/packages/coding-agent/src/tui-renderer.ts @@ -336,19 +336,21 @@ export class TuiRenderer { // Add header with logo and instructions const logo = chalk.bold.cyan("pi") + chalk.dim(` v${this.version}`); - const instructions = chalk.dim( - "esc" + - chalk.gray(" to interrupt") + - " • " + - "ctrl+c" + - chalk.gray(" to clear") + - " • " + - "ctrl+c twice" + - chalk.gray(" to exit") + - " • " + - "/" + - chalk.gray(" for commands"), - ); + const instructions = + chalk.dim("esc") + + chalk.gray(" to interrupt") + + "\n" + + chalk.dim("ctrl+c") + + chalk.gray(" to clear") + + "\n" + + chalk.dim("ctrl+c twice") + + chalk.gray(" to exit") + + "\n" + + chalk.dim("/") + + chalk.gray(" for commands") + + "\n" + + chalk.dim("drop files") + + chalk.gray(" to attach"); const header = new Text(logo + "\n" + instructions); // Setup UI layout