Change font size in tty / console / terminal

I have some console output (on Jenkins) and the table results get mangled because they are too 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:

在这里输入图像描述

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?

链接地址: http://www.djcxy.com/p/87384.html

上一篇: 在javascript中设置输出颜色

下一篇: 更改tty / console / terminal中的字体大小