Compartilhar via


PSConsoleReadLine Class

Definition

public ref class PSConsoleReadLine : Microsoft::PowerShell::Internal::IPSConsoleReadLineMockableMethods
[Windows::Foundation::Metadata::WebHostHidden]
public ref class PSConsoleReadLine : Microsoft::PowerShell::Internal::IPSConsoleReadLineMockableMethods
[Windows::Foundation::Metadata::WebHostHidden]
class PSConsoleReadLine : Microsoft::PowerShell::Internal::IPSConsoleReadLineMockableMethods
public class PSConsoleReadLine : Microsoft.PowerShell.Internal.IPSConsoleReadLineMockableMethods
type PSConsoleReadLine = class
    interface IPSConsoleReadLineMockableMethods
Public Class PSConsoleReadLine
Implements IPSConsoleReadLineMockableMethods
Inheritance
PSConsoleReadLine
Implements

Methods

Abort(Nullable<ConsoleKeyInfo>, Object)

Abort current action, e.g. incremental history search.

AcceptAndGetNext(Nullable<ConsoleKeyInfo>, Object)

Attempt to execute the current input. If it can be executed (like AcceptLine), then recall the next item from history the next time ReadLine is called.

AcceptLine(Nullable<ConsoleKeyInfo>, Object)

Attempt to execute the current input. If the current input is incomplete (for example there is a missing closing parenthesis, bracket, or quote, then the continuation prompt is displayed on the next line and PSReadLine waits for keys to edit the current input.

AddLine(Nullable<ConsoleKeyInfo>, Object)

The continuation prompt is displayed on the next line and PSReadLine waits for keys to edit the current input. This is useful to enter multi-line input as a single command even when a single line is complete input by itself.

AddToHistory(String)

Add a command to the history - typically used to restore history from a previous session.

BackwardChar(Nullable<ConsoleKeyInfo>, Object)

Move the cursor one character to the left. This may move the cursor to the previous line of multi-line input.

BackwardDeleteChar(Nullable<ConsoleKeyInfo>, Object)

Delete the character before the cursor.

BackwardDeleteLine(Nullable<ConsoleKeyInfo>, Object)

Like BackwardKillLine - deletes text from the point to the start of the line, but does not put the deleted text in the kill ring.

BackwardDeleteWord(Nullable<ConsoleKeyInfo>, Object)

Deletes the previous word.

BackwardKillLine(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the start of the input to the cursor. The cleared text is placed in the kill ring.

BackwardKillWord(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the start of the current word to the cursor. If the cursor is between words, the input is cleared from the start of the previous word to the cursor. The cleared text is placed in the kill ring.

BackwardWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor back to the start of the current word, or if between words, the start of the previous word. Word boundaries are defined by a configurable set of characters.

BeginningOfHistory(Nullable<ConsoleKeyInfo>, Object)

Move to the first item in the history.

BeginningOfLine(Nullable<ConsoleKeyInfo>, Object)

If the input has multiple lines, move to the start of the current line, or if already at the start of the line, move to the start of the input. If the input has a single line, move to the start of the input.

CancelLine(Nullable<ConsoleKeyInfo>, Object)

Cancel the current input, leaving the input on the screen, but returns back to the host so the prompt is evaluated again.

CaptureScreen(Nullable<ConsoleKeyInfo>, Object)

Start interactive screen capture - up/down arrows select lines, enter copies selected text to clipboard as text and html.

CharacterSearch(Nullable<ConsoleKeyInfo>, Object)

Read a character and search forward for the next occurence of that character. If an argument is specified, search forward (or backward if negative) for the nth occurence.

CharacterSearchBackward(Nullable<ConsoleKeyInfo>, Object)

Read a character and search backward for the next occurence of that character. If an argument is specified, search backward (or forward if negative) for the nth occurence.

ClearHistory(Nullable<ConsoleKeyInfo>, Object)

Clears history in PSReadLine. This does not affect PowerShell history.

ClearKillRing()

The contents of the kill ring are cleared.

ClearScreen(Nullable<ConsoleKeyInfo>, Object)

Clear the screen and draw the current line at the top of the screen.

Complete(Nullable<ConsoleKeyInfo>, Object)

Attempt to perform completion on the text surrounding the cursor. If there are multiple possible completions, the longest unambiguous prefix is used for completion. If trying to complete the longest unambiguous completion, a list of possible completions is displayed.

Copy(Nullable<ConsoleKeyInfo>, Object)

Copy selected region to the system clipboard. If no region is selected, copy the whole line.

CopyOrCancelLine(Nullable<ConsoleKeyInfo>, Object)

If text is selected, copy to the clipboard, otherwise cancel the line.

Cut(Nullable<ConsoleKeyInfo>, Object)

Delete selected region placing deleted text in the system clipboard.

Delete(Int32, Int32)

Delete some text at the given position. Supports undo.

DeleteChar(Nullable<ConsoleKeyInfo>, Object)

Delete the character under the cursor.

DeleteCharOrExit(Nullable<ConsoleKeyInfo>, Object)

Delete the character under the cursor, or if the line is empty, exit the process.

DeleteEndOfWord(Nullable<ConsoleKeyInfo>, Object)

Delete to the end of the word.

DeleteLine(Nullable<ConsoleKeyInfo>, Object)

Deletes the current line, enabling undo.

DeleteLineToFirstChar(Nullable<ConsoleKeyInfo>, Object)

Deletes text from the cursor to the first non-blank character of the line.

DeleteToEnd(Nullable<ConsoleKeyInfo>, Object)

Delete to the end of the line.

DeleteWord(Nullable<ConsoleKeyInfo>, Object)

Delete the next word.

DigitArgument(Nullable<ConsoleKeyInfo>, Object)

Start a new digit argument to pass to other functions.

Ding()

Notify the user based on their preference for notification.

EndOfHistory(Nullable<ConsoleKeyInfo>, Object)

Move to the last item (the current input) in the history.

EndOfLine(Nullable<ConsoleKeyInfo>, Object)

If the input has multiple lines, move to the end of the current line, or if already at the end of the line, move to the end of the input. If the input has a single line, move to the end of the input.

ExchangePointAndMark(Nullable<ConsoleKeyInfo>, Object)

The cursor is placed at the location of the mark and the mark is moved to the location of the cursor.

ForwardChar(Nullable<ConsoleKeyInfo>, Object)

Move the cursor one character to the right. This may move the cursor to the next line of multi-line input.

ForwardDeleteLine(Nullable<ConsoleKeyInfo>, Object)

Like ForwardKillLine - deletes text from the point to the end of the line, but does not put the deleted text in the kill ring.

ForwardSearchHistory(Nullable<ConsoleKeyInfo>, Object)

Perform an incremental forward search through history.

ForwardWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor forward to the end of the current word, or if between words, to the end of the next word. Word boundaries are defined by a configurable set of characters.

GetBufferState(Ast, Token[], ParseError[], Int32)

Get the state of the buffer - the ast, tokens, errors, and position of the cursor

GetBufferState(String, Int32)

Get the state of the buffer - the current input and the position of the cursor

GetDisplayGrouping(String)

Used to group the built in functions for help and Get-PSReadLineKeyHander output.

GetHistoryItems()

Return a collection of history items.

GetKeyHandlers()

Return all bound key handlers.

GetKeyHandlers(Boolean, Boolean)

Helper function for the Get-PSReadLineKeyHandler cmdlet.

GetOptions()

Helper function for the Get-PSReadLineOption cmdlet.

GetSelectionState(Int32, Int32)

Get the selection state of the buffer

GotoBrace(Nullable<ConsoleKeyInfo>, Object)

Go to the matching brace, paren, or square bracket.

GotoColumn(Nullable<ConsoleKeyInfo>, Object)

Move to the column indicated by arg.

GotoFirstNonBlankOfLine(Nullable<ConsoleKeyInfo>, Object)

Move the cursor to the first non-blank character in the line.

HistorySearchBackward(Nullable<ConsoleKeyInfo>, Object)

Replace the current input with the 'previous' item from PSReadLine history that matches the characters between the start and the input and the cursor.

HistorySearchForward(Nullable<ConsoleKeyInfo>, Object)

Replace the current input with the 'next' item from PSReadLine history that matches the characters between the start and the input and the cursor.

Insert(Char)

Insert a character at the current position. Supports undo.

Insert(String)

Insert a string at the current position. Supports undo.

InsertLineAbove(Nullable<ConsoleKeyInfo>, Object)

A new empty line is created above the current line regardless of where the cursor is on the current line. The cursor moves to the beginning of the new line.

InsertLineBelow(Nullable<ConsoleKeyInfo>, Object)

A new empty line is created below the current line regardless of where the cursor is on the current line. The cursor moves to the beginning of the new line.

InvertCase(Nullable<ConsoleKeyInfo>, Object)

Invert the case of the current character and move to the next one.

InViCommandMode()

Returns true if in Vi Command mode, otherwise false.

InViInsertMode()

Returns true if in Vi Insert mode, otherwise false.

InvokePrompt(Nullable<ConsoleKeyInfo>, Object)

Erases the current prompt and calls the prompt function to redisplay the prompt. Useful for custom key handlers that change state, e.g. change the current directory.

KillLine(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the cursor to the end of the input. The cleared text is placed in the kill ring.

KillRegion(Nullable<ConsoleKeyInfo>, Object)

Kill the text between the cursor and the mark.

KillWord(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the cursor to the end of the current word. If the cursor is between words, the input is cleared from the cursor to the end of the next word. The cleared text is placed in the kill ring.

MenuComplete(Nullable<ConsoleKeyInfo>, Object)

Attempt to perform completion on the text surrounding the cursor. If there are multiple possible completions, the longest unambiguous prefix is used for completion. If trying to complete the longest unambiguous completion, a list of possible completions is displayed.

MoveToEndOfLine(Nullable<ConsoleKeyInfo>, Object)

Move the cursor to the end of the input.

NextHistory(Nullable<ConsoleKeyInfo>, Object)

Replace the current input with the 'next' item from PSReadLine history.

NextLine(Nullable<ConsoleKeyInfo>, Object)

Move the cursor to the next line.

NextWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor forward to the start of the next word. Word boundaries are defined by a configurable set of characters.

NextWordEnd(Nullable<ConsoleKeyInfo>, Object)

Move the cursor forward to the end of the current word, or if between words, to the end of the next word. Word boundaries are defined by a configurable set of characters.

Paste(Nullable<ConsoleKeyInfo>, Object)

Paste text from the system clipboard.

PasteAfter(Nullable<ConsoleKeyInfo>, Object)

Paste the clipboard after the cursor, moving the cursor to the end of the pasted text.

PasteBefore(Nullable<ConsoleKeyInfo>, Object)

Paste the clipboard before the cursor, moving the cursor to the end of the pasted text.

PossibleCompletions(Nullable<ConsoleKeyInfo>, Object)

Display the list of possible completions.

PrependAndAccept(Nullable<ConsoleKeyInfo>, Object)

Prepend a '#' and accept the line.

PreviousHistory(Nullable<ConsoleKeyInfo>, Object)

Replace the current input with the 'previous' item from PSReadLine history.

PreviousLine(Nullable<ConsoleKeyInfo>, Object)

Move the cursor to the previous line.

ReadLine(Runspace, EngineIntrinsics)

Entry point - called from the PowerShell function PSConsoleHostReadLine after the prompt has been displayed.

Redo(Nullable<ConsoleKeyInfo>, Object)

Undo an undo.

RemoveKeyHandler(String[])

Helper function for the Remove-PSReadLineKeyHandler cmdlet.

RepeatLastCharSearch(Nullable<ConsoleKeyInfo>, Object)

Repeat the last recorded character search.

RepeatLastCharSearchBackwards(Nullable<ConsoleKeyInfo>, Object)

Repeat the last recorded character search, but in the opposite direction.

RepeatLastCommand(Nullable<ConsoleKeyInfo>, Object)

Repeat the last text modification.

RepeatSearch(Nullable<ConsoleKeyInfo>, Object)

Repeat the last search in the same direction as before.

RepeatSearchBackward(Nullable<ConsoleKeyInfo>, Object)

Repeat the last search in the same direction as before.

Replace(Int32, Int32, String, Action<Nullable<ConsoleKeyInfo>,Object>, Object)

Replace some text at the given position. Supports undo.

ReverseSearchHistory(Nullable<ConsoleKeyInfo>, Object)

Perform an incremental backward search through history.

RevertLine(Nullable<ConsoleKeyInfo>, Object)

Reverts all of the input to the current input.

ScrollDisplayDown(Nullable<ConsoleKeyInfo>, Object)

Scroll the display down one screen.

ScrollDisplayDownLine(Nullable<ConsoleKeyInfo>, Object)

Scroll the display down one line.

ScrollDisplayToCursor(Nullable<ConsoleKeyInfo>, Object)

Scroll the display to the cursor.

ScrollDisplayTop(Nullable<ConsoleKeyInfo>, Object)

Scroll the display to the top.

ScrollDisplayUp(Nullable<ConsoleKeyInfo>, Object)

Scroll the display up one screen.

ScrollDisplayUpLine(Nullable<ConsoleKeyInfo>, Object)

Scroll the display up one line.

SearchChar(Nullable<ConsoleKeyInfo>, Object)

Read the next character and then find it, going forward, and then back off a character. This is for 't' functionality.

SearchCharBackward(Nullable<ConsoleKeyInfo>, Object)

Read the next character and then find it, going backward, and then back off a character. This is for 'T' functionality.

SearchCharBackwardWithBackoff(Nullable<ConsoleKeyInfo>, Object)

Read the next character and then find it, going backward, and then back off a character. This is for 'T' functionality.

SearchCharWithBackoff(Nullable<ConsoleKeyInfo>, Object)

Read the next character and then find it, going forward, and then back off a character. This is for 't' functionality.

SearchForward(Nullable<ConsoleKeyInfo>, Object)

Prompts for a search string and initiates search upon AcceptLine.

SelectAll(Nullable<ConsoleKeyInfo>, Object)

Select the entire line.

SelectBackwardChar(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the previous character.

SelectBackwardsLine(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include from the cursor to the start of the line.

SelectBackwardWord(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the previous word.

SelectForwardChar(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the next character.

SelectForwardWord(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the next word using ForwardWord.

SelectLine(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include from the cursor to the end of the line.

SelectNextWord(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the next word.

SelectShellBackwardWord(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the previous word using ShellBackwardWord.

SelectShellForwardWord(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the next word using ShellForwardWord.

SelectShellNextWord(Nullable<ConsoleKeyInfo>, Object)

Adjust the current selection to include the next word using ShellNextWord.

SelfInsert(Nullable<ConsoleKeyInfo>, Object)

Insert the key.

SetCursorPosition(Int32)

Set the position of the cursor.

SetKeyHandler(String[], Action<Nullable<ConsoleKeyInfo>,Object>, String, String)

Helper function for the Set-PSReadLineKeyHandler cmdlet.

SetKeyHandler(String[], ScriptBlock, String, String)

Helper function for the Set-PSReadLineKeyHandler cmdlet.

SetMark(Nullable<ConsoleKeyInfo>, Object)

Mark the current location of the cursor for use in a subsequent editing command.

SetOptions(SetPSReadLineOption)

Helper function for the Set-PSReadLineOption cmdlet.

ShellBackwardKillWord(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the start of the current word to the cursor. If the cursor is between words, the input is cleared from the start of the previous word to the cursor. The cleared text is placed in the kill ring.

ShellBackwardWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor back to the start of the current word, or if between words, the start of the previous word. Word boundaries are defined by PowerShell tokens.

ShellForwardWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor forward to the start of the next word. Word boundaries are defined by PowerShell tokens.

ShellKillWord(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the cursor to the end of the current word. If the cursor is between words, the input is cleared from the cursor to the end of the next word. The cleared text is placed in the kill ring.

ShellNextWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor forward to the end of the current word, or if between words, to the end of the next word. Word boundaries are defined by PowerShell tokens.

ShowKeyBindings(Nullable<ConsoleKeyInfo>, Object)

Show all bound keys.

SwapCharacters(Nullable<ConsoleKeyInfo>, Object)

Swap the current character and the one before it.

TabCompleteNext(Nullable<ConsoleKeyInfo>, Object)

Attempt to complete the text surrounding the cursor with the next available completion.

TabCompletePrevious(Nullable<ConsoleKeyInfo>, Object)

Attempt to complete the text surrounding the cursor with the previous available completion.

TryGetArgAsInt(Object, Int32, Int32)

A helper method when your function expects an optional int argument (e.g. from DigitArgument) If there is not argument (it's null), returns true and sets numericArg to defaultNumericArg. Dings and returns false if the argument is not an int (no conversion is attempted) Otherwise returns true, and numericArg has the result.

Undo(Nullable<ConsoleKeyInfo>, Object)

Undo a previous edit.

UndoAll(Nullable<ConsoleKeyInfo>, Object)

Undo all previous edits for line.

UnixWordRubout(Nullable<ConsoleKeyInfo>, Object)

Clear the input from the start of the current word to the cursor. If the cursor is between words, the input is cleared from the start of the previous word to the cursor. The cleared text is placed in the kill ring.

ValidateAndAcceptLine(Nullable<ConsoleKeyInfo>, Object)

Attempt to execute the current input. If the current input is incomplete (for example there is a missing closing parenthesis, bracket, or quote, then the continuation prompt is displayed on the next line and PSReadLine waits for keys to edit the current input.

ViAcceptLine(Nullable<ConsoleKeyInfo>, Object)

Accept the line and switch to Insert mode.

ViAcceptLineOrExit(Nullable<ConsoleKeyInfo>, Object)

Like DeleteCharOrExit in Emacs mode, but accepts the line instead of deleting a character.

ViAppendLine(Nullable<ConsoleKeyInfo>, Object)

A new line is inserted below the current line.

ViBackwardDeleteGlob(Nullable<ConsoleKeyInfo>, Object)

Deletes the previous word, using only white space as the word delimiter.

ViBackwardGlob(Nullable<ConsoleKeyInfo>, Object)

Moves the cursor back to the beginning of the previous word, using only white space as delimiters.

ViBackwardWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor back to the start of the current word, or if between words, the start of the previous word. Word boundaries are defined by a configurable set of characters.

ViCommandMode(Nullable<ConsoleKeyInfo>, Object)

Switch the current operating mode from Vi-Insert to Vi-Command.

ViDeleteBrace(Nullable<ConsoleKeyInfo>, Object)

Find the matching brace, paren, or square bracket and delete all contents within, including the brace.

ViDeleteEndOfGlob(Nullable<ConsoleKeyInfo>, Object)

Delete to the end of the word.

ViDeleteGlob(Nullable<ConsoleKeyInfo>, Object)

Delete the next glob (white space delimited word).

ViDeleteToBeforeChar(Char, Nullable<ConsoleKeyInfo>, Object)

Deletes until given character.

ViDeleteToBeforeChar(Nullable<ConsoleKeyInfo>, Object)

Deletes until given character.

ViDeleteToBeforeCharBackward(Nullable<ConsoleKeyInfo>, Object)

Deletes until given character.

ViDeleteToChar(Char, Nullable<ConsoleKeyInfo>, Object)

Deletes until given character.

ViDeleteToChar(Nullable<ConsoleKeyInfo>, Object)

Deletes until given character.

ViDeleteToCharBack(Char, Nullable<ConsoleKeyInfo>, Object)

Deletes backwards until given character.

ViDeleteToCharBackward(Nullable<ConsoleKeyInfo>, Object)

Deletes backwards until given character.

ViDigitArgumentInChord(Nullable<ConsoleKeyInfo>, Object)

Start a new digit argument to pass to other functions while in one of vi's chords.

ViEditVisually(Nullable<ConsoleKeyInfo>, Object)

Edit the command line in a text editor specified by $env:EDITOR or $env:VISUAL.

ViEndOfGlob(Nullable<ConsoleKeyInfo>, Object)

Moves the cursor to the end of the word, using only white space as delimiters.

ViEndOfPreviousGlob(Nullable<ConsoleKeyInfo>, Object)

Moves to the end of the previous word, using only white space as a word delimiter.

ViExit(Nullable<ConsoleKeyInfo>, Object)

Exits the shell.

ViGotoBrace(Nullable<ConsoleKeyInfo>, Object)

Similar to GotoBrace(Nullable<ConsoleKeyInfo>, Object), but is character based instead of token based.

ViInsertAtBegining(Nullable<ConsoleKeyInfo>, Object)

Switch to Insert mode and position the cursor at the beginning of the line.

ViInsertAtEnd(Nullable<ConsoleKeyInfo>, Object)

Switch to Insert mode and position the cursor at the end of the line.

ViInsertLine(Nullable<ConsoleKeyInfo>, Object)

A new line is inserted above the current line.

ViInsertMode(Nullable<ConsoleKeyInfo>, Object)

Switch to Insert mode.

ViInsertWithAppend(Nullable<ConsoleKeyInfo>, Object)

Append from the current line position.

ViInsertWithDelete(Nullable<ConsoleKeyInfo>, Object)

Delete the current character and switch to Insert mode.

ViJoinLines(Nullable<ConsoleKeyInfo>, Object)

Joins the current line and the next line.

ViNextGlob(Nullable<ConsoleKeyInfo>, Object)

Moves to the next word, using only white space as a word delimiter.

ViNextWord(Nullable<ConsoleKeyInfo>, Object)

Move the cursor forward to the start of the next word. Word boundaries are defined by a configurable set of characters.

ViReplaceLine(Nullable<ConsoleKeyInfo>, Object)

Erase the entire command line.

ViReplaceToBeforeChar(Nullable<ConsoleKeyInfo>, Object)

Replaces until given character.

ViReplaceToBeforeCharBackward(Nullable<ConsoleKeyInfo>, Object)

Replaces until given character.

ViReplaceToChar(Nullable<ConsoleKeyInfo>, Object)

Deletes until given character.

ViReplaceToCharBackward(Nullable<ConsoleKeyInfo>, Object)

Replaces until given character.

ViSearchHistoryBackward(Nullable<ConsoleKeyInfo>, Object)

Prompts for a search string and initiates search upon AcceptLine.

ViTabCompleteNext(Nullable<ConsoleKeyInfo>, Object)

Ends the current edit group, if needed, and invokes TabCompleteNext.

ViTabCompletePrevious(Nullable<ConsoleKeyInfo>, Object)

Ends the current edit group, if needed, and invokes TabCompletePrevious.

ViYankBeginningOfLine(Nullable<ConsoleKeyInfo>, Object)

Yank from the beginning of the buffer to the cursor.

ViYankEndOfGlob(Nullable<ConsoleKeyInfo>, Object)

Yank from the cursor to the end of the WORD(s).

ViYankEndOfWord(Nullable<ConsoleKeyInfo>, Object)

Yank from the cursor to the end of the word(s).

ViYankLeft(Nullable<ConsoleKeyInfo>, Object)

Yank character(s) to the left of the cursor.

ViYankLine(Nullable<ConsoleKeyInfo>, Object)

Yank the entire buffer.

ViYankNextGlob(Nullable<ConsoleKeyInfo>, Object)

Yank from cursor to the start of the next WORD(s).

ViYankNextWord(Nullable<ConsoleKeyInfo>, Object)

Yank the word(s) after the cursor.

ViYankPercent(Nullable<ConsoleKeyInfo>, Object)

Yank to/from matching brace.

ViYankPreviousGlob(Nullable<ConsoleKeyInfo>, Object)

Yank from beginning of the WORD(s) to cursor.

ViYankPreviousWord(Nullable<ConsoleKeyInfo>, Object)

Yank the word(s) before the cursor.

ViYankRight(Nullable<ConsoleKeyInfo>, Object)

Yank character(s) under and to the right of the cursor.

ViYankToEndOfLine(Nullable<ConsoleKeyInfo>, Object)

Yank from the cursor to the end of the buffer.

ViYankToFirstChar(Nullable<ConsoleKeyInfo>, Object)

Yank from the first non-whitespace character to the cursor.

WhatIsKey(Nullable<ConsoleKeyInfo>, Object)

Read a key and tell me what the key is bound to.

Yank(Nullable<ConsoleKeyInfo>, Object)

Add the most recently killed text to the input.

YankLastArg(Nullable<ConsoleKeyInfo>, Object)

Yank the last argument from the previous history line. With an argument, the first time it is invoked, behaves just like YankNthArg. If invoked multiple times, instead it iterates through history and arg sets the direction (negative reverses the direction.)

YankNthArg(Nullable<ConsoleKeyInfo>, Object)

Yank the first argument (after the command) from the previous history line. With an argument, yank the nth argument (starting from 0), if the argument is negative, start from the last argument.

YankPop(Nullable<ConsoleKeyInfo>, Object)

If the previous operation was Yank or YankPop, replace the previously yanked text with the next killed text from the kill ring.

Explicit Interface Implementations

IPSConsoleReadLineMockableMethods.CompleteInput(String, Int32, Hashtable, PowerShell)
IPSConsoleReadLineMockableMethods.Ding()
IPSConsoleReadLineMockableMethods.RunspaceIsRemote(Runspace)

Applies to