gpt4 book ai didi

powershell - 如何在 PowerShell 上更改字体

转载 作者:行者123 更新时间:2023-12-03 18:22:08 25 4
gpt4 key购买 nike

如何更改 PowerShell 的字体?

PowerShell Preference 中只有几种字体。

有没有办法选择更多的字体?

最佳答案

当您启动 Powershell.exe 时,客户端服务器运行时子系统 (csrss.exe) 会生成一个名为 conhost.exe 的子进程。

您可以尝试以更难的方式处理字体:

Set-Location HKCU:\Console
New-Item '.\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe'
Set-Location '.\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe'
New-ItemProperty . FaceName -type STRING -value "Lucida Console"
New-ItemProperty . FontFamily -type DWORD -value 0x00000036
New-ItemProperty . FontSize -type DWORD -value 0x000c0000
New-ItemProperty . FontWeight -type DWORD -value 0x00000190

除此之外,还有一个 设置控制台字体 可用于 PowerShell 的模块。

用于设置它的 cmdlet 是:
Set-ConsoleFont 10

您可以查看 4SysOps以供引用。

下有一些导出。 kernel32.dll 也可以更改字体。

关于powershell - 如何在 PowerShell 上更改字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42039488/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com