PSReadLine Module
O módulo PSReadLine contém cmdlets que permitem personalizar o ambiente de edição de linha de comando no PowerShell. PowerShell 7.1 fornecido com PSReadLine v2.1. Estes artigos documentam PSReadLine v2.1.
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 detetado. Atualmente, PSReadLine não funciona bem com os leitores de tela. A renderização e formatação padrão do PowerShell 7.0 no Windows funcionam corretamente. Você pode carregar manualmente o módulo, se necessário.
PSReadLine Cmdlets
| Cmdlet | Description |
|---|---|
| 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. |