Skip to content

A module for reading from the console with up and down arrow history. Includes support for basic backspace, delete, left arrow, right arrow, home, and end keys.

Notifications You must be signed in to change notification settings

andria-dev/pwsh-ReadLineWithHistory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

pwsh-ReadLineWithHistory

Works on Linux.

Usage

Import-Module ReadLineWithHistory;
$Reader = New-ReadLineWithHistory;

while ($True) {
  $Command = $Reader.ReadLine("$env:USER - $env:PWD> ");
  # Process the command
}

# Or

$Input = $Reader.ReadLine("PROMPT: ");
# Process the input
$Input = $Reader.ReadLine("PROMPT: ");
# Process the input

About

A module for reading from the console with up and down arrow history. Includes support for basic backspace, delete, left arrow, right arrow, home, and end keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published