mirror of
https://github.com/PowerShell/PSReadLine
synced 2026-06-08 12:12:13 +00:00
9 lines
366 B
PowerShell
9 lines
366 B
PowerShell
function PSConsoleHostReadLine
|
|
{
|
|
## Get the execution status of the last accepted user input.
|
|
## This needs to be done as the first thing because any script run will flush $?.
|
|
$lastRunStatus = $?
|
|
Microsoft.PowerShell.Core\Set-StrictMode -Off
|
|
[Microsoft.PowerShell.PSConsoleReadLine]::ReadLine($host.Runspace, $ExecutionContext, $lastRunStatus)
|
|
}
|