PSConsoleHostReadLine

This function is the main entry point for PSReadLine.

Syntax

PSConsoleHostReadLine

Description

PSConsoleHostReadLine is the main entry point for the PSReadLine module. The PowerShell console host automatically loads the PSReadLine module and calls this function. Under normal operating conditions, this function isn't intended to be used from the command line.

The extension point PSConsoleHostReadLine is special to the console host. The host calls any alias, function, or script with this name. PSReadLine defines this function so that it is called from the console host.

Examples

Example 1

This function isn't intended to be used from the command line.

PSConsoleHostReadLine

Inputs

None

Outputs

None

Notes

The purpose of this article is to document that this function exists and is used by the PSReadLine module.