0

I have built a small tool. This also works. I had made a banner with figlet for fun. On my normal screen it looks good. But when I try the tool on my 13 inch laptop the banner is shifted and you can't read it. I can now make it manually larger... Can I also define a fixed size for the terminal? So that the terminal always has the same size no matter where I start the tool?

clear();

console.log(
    chalk.green(
        figlet.textSync('SYSTEMINFO', {
            horizontalLayout: 'full',
            font: 'ANSI Shadow',
        }),
    ),
);
  • You cannot. The terminal depends on physical screen/window size, not on what your CLI application needs. This basically means your CLI application needs to scale based on the screen/window size, not the other way around. – Sergiu Paraschiv May 04 '21 at 11:27
  • @ Sergiu Paraschiv Ok. Thanks for the quick reply. – Wolfgang15644545 May 04 '21 at 11:33

0 Answers0