Friday, 26 May 2017

Change font size in tty or whatever

I have some console output (on Jenkins) and the table results get mangled because they are two wide. These tables are written to the console, each with a single console.log() call, because the tables are just formatted strings with newline and tab characters, that's all.

Here is a visual of the problem:

enter image description here

When writing this table to the console, is there a way to temporarily change the font size?

Something like:

require('tty').fontSize(5);
console.log(myTableString);
require('tty').fontSize(10);

something like that?



via Alexander Mills

No comments:

Post a Comment