简体   繁体   English

在perl中更改终端输出的字体大小

[英]Changing the font size of terminal output in perl

How does one change the font size of terminal output created via the print command in perl ? 如何更改通过perlprint命令创建的终端输出的字体大小? The output font color and emphasis (eg, bold) can be changed by using functionality provided by the Term:ANSIColor module (available from CPAN), but I have been unable to locate a module that supports changing the font size. 可以通过使用Term:ANSIColor模块(可从CPAN获得)提供的功能来更改输出字体的颜色和强调(例如,粗体),但是我无法找到支持更改字体大小的模块。 I suspect the solution might involve system calls that modify the behavior of the shell ( bash in my case), but I am not certain which calls would be appropriate in this case. 我怀疑该解决方案可能涉及修改外壳行为的system调用(在我的情况下为bash ),但我不确定哪种调用适合这种情况。

You cannot. 你不能。 The font size is determined by the terminal emulator; 字体大小由终端仿真器确定。 it cannot be changed via control sequences. 不能通过控制序列进行更改。

(HISTORICALLY, some terminals supported certain VT100 control sequences to enable "double-width" and "double-height" characters. Using these modes required special handling, though -- for instance, double-height characters had to be outputted twice, once for each line -- and these modes are not supported by most modern terminal applications.) (从历史上看,某些终端支持某些VT100控制序列以启用“双倍宽度”和“双倍高度”字符。使用这些模式需要特殊处理,尽管-例如,双倍高度字符必须输出两次,一次用于每行-大多数现代终端应用程序不支持这些模式。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM