From de48ead9be2df87f664430bc6e84bc9bf79566fd Mon Sep 17 00:00:00 2001 From: reactmaster <134981393+reactmaster1@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:07:29 +0900 Subject: [PATCH] [Fix] Bug Fixed CLIPanel --- src/lib/CLIWidgets/CLIPanel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/CLIWidgets/CLIPanel.ts b/src/lib/CLIWidgets/CLIPanel.ts index f16a816..79b4ea8 100644 --- a/src/lib/CLIWidgets/CLIPanel.ts +++ b/src/lib/CLIWidgets/CLIPanel.ts @@ -13,7 +13,7 @@ export class CLIPanel { "y": 0, "width": process.stdout.columns, "height": process.stdout.rows, - "fill": "█", + "fill": " ", "background-color": "#000000", "text-color": "#ffffff", "visible": true @@ -30,7 +30,7 @@ export class CLIPanel { public prerun(widget: app.Iwidget, focus: string) { const { styles } = widget.data.properties; - if (!styles.fill) styles.fill = `█`; + if (!styles.fill) styles.fill = ` `; process.stdout.write(`\x1b[${styles.y};${styles.x}H`); if (styles.width) console.log(focus + chalk.hex(styles[`background-color`] ? styles[`background-color`] : `#ffffff`)(styles.fill.repeat(styles.width))); @@ -40,4 +40,4 @@ export class CLIPanel { if (styles.width) console.log(focus + chalk.hex(styles[`background-color`] ? styles[`background-color`] : `#ffffff`)(styles.fill.repeat(styles.width))); } } -} \ No newline at end of file +}