PSReadLine

O módulo PSReadLine contém cmdlets que permitem personalizar o ambiente de edição de linha de comando no PowerShell.

Houve muitas atualizações para PSReadLine desde a versão que é fornecida no Windows PowerShell 5.1.

  • O PowerShell 7.4.0 é fornecido com o PSReadLine 2.3.4
  • O PowerShell 7.3.0 é fornecido com o PSReadLine 2.2.6
  • O PowerShell 7.2.5 é fornecido com o PSReadLine 2.1.0
  • O PowerShell 7.0.11 é fornecido com o PSReadLine 2.0.4
  • O PowerShell 5.1 é fornecido com o PSReadLine 2.0.0

Estes artigos documentam a versão 2.3.4 do PSReadLine.

Observação

A partir do PowerShell 7.0, o PowerShell ignora o carregamento automático do PSReadLine no Windows se um programa leitor de tela for detectado. Atualmente, o PSReadLine não funciona bem com os leitores de tela. A renderização e a formatação padrão do PowerShell 7.0 no Windows funcionam corretamente. Você pode carregar manualmente o módulo, se necessário.

PSReadLine

Get-PSReadLineKeyHandler

Gets the key bindings for the PSReadLine module.

Get-PSReadLineOption

Gets values for the options that can be configured.

PSConsoleHostReadLine

This function is the main entry point for PSReadLine.

Remove-PSReadLineKeyHandler

Removes a key binding.

Set-PSReadLineKeyHandler

Binds keys to user-defined or PSReadLine key handler functions.

Set-PSReadLineOption

Customizes the behavior of command line editing in PSReadLine.