PSReadLine

Moduł PSReadLine zawiera polecenia cmdlet, które umożliwiają dostosowanie środowiska edycji wiersza polecenia w programie PowerShell.

Od wersji dostarczanej w programie Windows PowerShell 5.1 wprowadzono wiele aktualizacji programu PSReadLine.

  • Program PowerShell 7.4.0 jest dostarczany z programem PSReadLine 2.3.4
  • Program PowerShell 7.3.0 jest dostarczany z programem PSReadLine 2.2.6
  • Program PowerShell 7.2.5 jest dostarczany z programem PSReadLine 2.1.0
  • Program PowerShell 7.0.11 jest dostarczany z programem PSReadLine 2.0.4
  • Program PowerShell 5.1 jest dostarczany z programem PSReadLine 2.0.0

Te artykuły dokumentują wersję 2.1.0 programu PSReadLine.

Uwaga

Począwszy od programu PowerShell 7.0, program PowerShell pomija automatyczne ładowanie programu PSReadLine w systemie Windows, jeśli zostanie wykryty program czytnika zawartości ekranu. Obecnie funkcja PSReadLine nie działa dobrze z czytnikami zawartości ekranu. Domyślne renderowanie i formatowanie programu PowerShell 7.0 w systemie Windows działa prawidłowo. W razie potrzeby możesz ręcznie załadować moduł.

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.