PSReadLine Module
PSReadLine-modulen innehåller cmdletar som gör att du kan anpassa kommandoradsredigeringsmiljön i PowerShell. PowerShell 7.1 levereras med PSReadLine v2.1. De här artiklarna dokumenterar PSReadLine v2.1.
Anmärkning
Från och med PowerShell 7.0 hoppar PowerShell över automatisk inläsning av PSReadLine i Windows om ett skärmläsarprogram identifieras. PsReadLine fungerar för närvarande inte bra med skärmläsarna. Standardåtergivningen och formateringen av PowerShell 7.0 i Windows fungerar korrekt. Du kan läsa in modulen manuellt om det behövs.
PSReadLine-cmdletar
| 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. |