Change console font in Windows

后端 未结 7 1147
闹比i
闹比i 2020-11-30 12:04

Is there a way to change the console font in Windows in python 2.6?

I\'m on Windows 7.

ie:

import os
os.console.font = \'Lucida Console\'
         


        
7条回答
  •  执笔经年
    2020-11-30 12:22

    It is impossible to change it for one session because the font setting is system-wide.

    You can change the global font by changing some values in the registry, but you'll have to reboot the system.

提交回复
热议问题