Add settings manager, show changelog on startup if not shown yet.

This commit is contained in:
Mario Zechner 2025-11-13 21:19:57 +01:00
parent 16740ea077
commit c82f9f4f8c
8 changed files with 264 additions and 16 deletions

View file

@ -0,0 +1,17 @@
import type { Component } from "@mariozechner/pi-tui";
import chalk from "chalk";
/**
* Dynamic border component that adjusts to viewport width
*/
export class DynamicBorder implements Component {
private color: (str: string) => string;
constructor(color: (str: string) => string = chalk.blue) {
this.color = color;
}
render(width: number): string[] {
return [this.color("─".repeat(Math.max(1, width)))];
}
}