diff --git a/reference/5.1/PSReadLine/About/about_PSReadLine_Functions.md b/reference/5.1/PSReadLine/About/about_PSReadLine_Functions.md index b8dbfe6a69e..7ec9188a8bb 100644 --- a/reference/5.1/PSReadLine/About/about_PSReadLine_Functions.md +++ b/reference/5.1/PSReadLine/About/about_PSReadLine_Functions.md @@ -3,7 +3,7 @@ description: > This article documents the functions provided by PSReadLine. These functions can be bound to keystrokes for easy access and invocation. Locale: en-US -ms.date: 10/10/2023 +ms.date: 06/17/2025 online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_PSReadLine_Functions @@ -980,8 +980,8 @@ pressing the `#` key sends 10 `#` characters (`##########`) to the input line. Similarly, you can use this with other operations, like `` or `Left-Arrow`. -- Windows mode: ``, ``, ``, ``, ``, ``, - ``, ``, ``, ``, `` +- Windows mode: ``, ``, ``, ``, ``, + ``, ``, ``, ``, ``, `` - Emacs mode: ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, `` - Vi command mode: `<0>`, `<1>`, `<2>`, `<3>`, `<4>`, `<5>`, `<6>`, `<7>`, @@ -989,9 +989,11 @@ Similarly, you can use this with other operations, like `` or ### InvokePrompt -Erases the current prompt and calls the prompt function to redisplay the -prompt. Useful for custom key handlers that change state. For example, change -the current directory. +Attempts to erase the current prompt and call the prompt function to redisplay +the prompt. Useful for custom key handlers that change state. For example, +change the current directory. This method can't overwrite a prompt that has +left the screen buffer. Calls to `InvokePrompt` with no `Y` position argument +return immediately if the prompt can't be overwritten. - Function is unbound. diff --git a/reference/7.4/PSReadLine/About/about_PSReadLine_Functions.md b/reference/7.4/PSReadLine/About/about_PSReadLine_Functions.md index fcaa0593b2d..e63d7752a54 100644 --- a/reference/7.4/PSReadLine/About/about_PSReadLine_Functions.md +++ b/reference/7.4/PSReadLine/About/about_PSReadLine_Functions.md @@ -3,7 +3,7 @@ description: > This article documents the functions provided by PSReadLine. These functions can be bound to keystrokes for easy access and invocation. Locale: en-US -ms.date: 03/03/2025 +ms.date: 06/17/2025 online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_PSReadLine_Functions @@ -1179,9 +1179,11 @@ Similarly, you can use this with other operations, like `` or ### InvokePrompt -Erases the current prompt and calls the prompt function to redisplay the -prompt. Useful for custom key handlers that change state. For example, change -the current directory. +Attempts to erase the current prompt and call the prompt function to redisplay +the prompt. Useful for custom key handlers that change state. For example, +change the current directory. This method can't overwrite a prompt that has +left the screen buffer. Calls to `InvokePrompt` with no `Y` position argument +return immediately if the prompt can't be overwritten. - Function is unbound. @@ -1337,7 +1339,6 @@ Show the tooltip of the currently selected list item in the full view. - Emacs mode: `F4` - Vi insert mode: `F4` - ### SwitchPredictionView Switch the view style for prediction between `InlineView` and `ListView`. diff --git a/reference/7.5/PSReadLine/About/about_PSReadLine_Functions.md b/reference/7.5/PSReadLine/About/about_PSReadLine_Functions.md index 19e467d7192..b9cf6973d7d 100644 --- a/reference/7.5/PSReadLine/About/about_PSReadLine_Functions.md +++ b/reference/7.5/PSReadLine/About/about_PSReadLine_Functions.md @@ -3,7 +3,7 @@ description: > This article documents the functions provided by PSReadLine. These functions can be bound to keystrokes for easy access and invocation. Locale: en-US -ms.date: 03/03/2025 +ms.date: 06/17/2025 online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_PSReadLine_Functions @@ -1179,9 +1179,11 @@ Similarly, you can use this with other operations, like `` or ### InvokePrompt -Erases the current prompt and calls the prompt function to redisplay the -prompt. Useful for custom key handlers that change state. For example, change -the current directory. +Attempts to erase the current prompt and call the prompt function to redisplay +the prompt. Useful for custom key handlers that change state. For example, +change the current directory. This method can't overwrite a prompt that has +left the screen buffer. Calls to `InvokePrompt` with no `Y` position argument +return immediately if the prompt can't be overwritten. - Function is unbound. diff --git a/reference/7.6/PSReadLine/About/about_PSReadLine_Functions.md b/reference/7.6/PSReadLine/About/about_PSReadLine_Functions.md index 16fcd88cab4..7c0ef156b9f 100644 --- a/reference/7.6/PSReadLine/About/about_PSReadLine_Functions.md +++ b/reference/7.6/PSReadLine/About/about_PSReadLine_Functions.md @@ -3,7 +3,7 @@ description: > This article documents the functions provided by PSReadLine. These functions can be bound to keystrokes for easy access and invocation. Locale: en-US -ms.date: 03/03/2025 +ms.date: 06/17/2025 online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-7.6&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_PSReadLine_Functions @@ -1179,9 +1179,11 @@ Similarly, you can use this with other operations, like `` or ### InvokePrompt -Erases the current prompt and calls the prompt function to redisplay the -prompt. Useful for custom key handlers that change state. For example, change -the current directory. +Attempts to erase the current prompt and call the prompt function to redisplay +the prompt. Useful for custom key handlers that change state. For example, +change the current directory. This method can't overwrite a prompt that has +left the screen buffer. Calls to `InvokePrompt` with no `Y` position argument +return immediately if the prompt can't be overwritten. - Function is unbound.