- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想知道为什么当我从“运行”(或“开始”)和桌面 PowerShell.exe 的快捷方式打开 PowerShell 时,它的背景不同。在第一种情况下,背景是蓝色的,在后一种情况下,背景是黑色的。
PowerShell 的两个窗口之间还有其他区别吗?
编辑 2:在下图中,您可以看到 powershell 进程。此外,如果我直接从 C:\Windows\System32\WindowsPowerShell\v1.0 打开 powershell.exe,背景是蓝色而不是黑色(记住它在桌面上的链接会打开一个黑色背景的 powershell)。
如下图,powershell.exe和Windows PowerShell进程都位于C:\Windows\System32\WindowsPowerShell\v1.0。
P.S.:此处描述的情况在 Windows 10 和 7 上是相同的。
如果我进入文件夹 C:\Windows\System32\WindowsPowerShell\v1.0 并右键单击 powershell.exe,则没有颜色选项卡,但它在桌面上的链接有颜色选项卡。
最佳答案
Are there other differences between the two windows of the PowerShell?
可能是,但很可能处于同一水平。 (例如,从您的屏幕截图来看,蓝色控制台更宽,因此可能具有更高的宽度布局设置)。
afaics 看起来它们都是相同的 powershell.exe,但主机设置不同。但只有您可以确认。
如何检查它们是否是相同的“PowerShell”
Task Manager
> Details
选项卡。powershell.exe
的进程.Properties
并查看位置C:\Windows\System32\WindowsPowerShell\v1.0
为什么一黑一蓝?
Properties
> Colours
Windows PowerShell
执行相同的操作开始菜单中的快捷方式。powershell.exe
,它正在使用注册表中的设置,如 here 所述.编辑: 所以运行 powershell.exe
直接使用存储在路径 HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe
的注册表中的设置.复制和粘贴快捷方式不会复制这些设置,因为它们未存储在 exe 中。我相信但我不确定快捷方式是否会使用 HKEY_CURRENT_USER\Console\
中的设置默认。您需要编辑属性以更改快捷方式的设置。您可以在注册表中编辑它们,但这似乎是个坏主意,因为它不仅仅被 PowerShell 使用。
相关内容
Properties
中的默认值以上。Options
, Font
和 Layout
设置也可能不同。powershell.exe
查看当前控制台的值(包括运行 > Properties
) $Host
, Get-Host
和(如果使用 PSReadLine
模块) Get-PSReadLineOption
, Set-PSReadLineOption
关于powershell - 蓝底和黑底PowerShell的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65862733/
我有一些按钮总是 float 在浏览器窗口的底 Angular 。 后退 按钮位于正确的位置,但下一步 按钮不会正确 float 。 #footerback { width: 107px;
有谁知道如何在传统 java 中使用此公式计算三角形的面积而不更改或添加公式中的任何内容? 面积 = 1/2*底*高 如果我像这样修改公式: 面积=1.0f/2*baseheigh 或 1/2.0fb
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 关于您编写的代码问题的问题必须在问题本身中描述具体问题 — 并且包括有效代码 以重现它。参见 SS
我正在使用 jQuery mobile 并有一个 div,我只希望底部的 2 个 Angular 具有 flex 的外观。 根据我的阅读,我明白我应该使用: ui-corner-bl 和 ui-cor
我是一名优秀的程序员,十分优秀!