当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] PSReadLine 模块

作者:精品下载站 日期:2024-12-14 02:00:34 浏览:12 分类:玩电脑

PSReadLine 模块


PS阅读线

PSReadLine 模块包含可让您在 PowerShell 中自定义命令行编辑环境的 cmdlet。

自 Windows PowerShell 5.1 中发布的版本以来,PSReadLine 已进行了许多更新。

  • PowerShell 7.4.0 附带 PSReadLine 2.3.4
  • PowerShell 7.3.0 附带 PSReadLine 2.2.6
  • PowerShell 7.2.5 附带 PSReadLine 2.1.0
  • PowerShell 7.0.11 附带 PSReadLine 2.0.4
  • PowerShell 5.1 附带 PSReadLine 2.0.0

这些文章记录了 PSReadLine 2.3.4 版本。

笔记

从 PowerShell 7.0 开始,如果检测到屏幕阅读器程序,PowerShell 将在 Windows 上跳过自动加载 PSReadLine。目前,PSReadLine 不能很好地与屏幕阅读器配合使用。 Windows 上 PowerShell 7.0 的默认呈现和格式工作正常。如果需要,您可以手动加载该模块。

PS阅读线

Get-PSReadLineKeyHandler

获取 PSReadLine 模块的按键绑定。

Get-PSReadLineOption

获取可配置选项的值。

PSConsoleHostReadLine

此函数是 PSReadLine 的主要入口点。

Remove-PSReadLineKeyHandler

删除键绑定。

Set-PSReadLineKeyHandler

将键绑定到用户定义或 PSReadLine 键处理函数。

Set-PSReadLineOption

自定义 PSReadLine 中命令行编辑的行为。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯