feat(core): use real console width in console banner

This commit is contained in:
Elian Doran
2026-03-28 11:25:03 +02:00
parent 8ada23c9be
commit f04f295b21

View File

@@ -14,7 +14,8 @@ export default class LogService {
banner(message: string | undefined) {
if (!message) return;
const maxContent = 76; // 80 - 4 (border + padding)
const termWidth = (typeof process !== "undefined" && process.stdout?.columns) || 80;
const maxContent = termWidth - 4; // border + padding
const words = message.split(" ");
const lines: string[] = [];
let current = "";