idk where the additional bytes came from
This commit is contained in:
parent
794ccb8f7c
commit
018eac82dd
@ -169,7 +169,7 @@ Examples:
|
|||||||
{
|
{
|
||||||
if($Host.UI.RawUI.KeyAvailable)
|
if($Host.UI.RawUI.KeyAvailable)
|
||||||
{
|
{
|
||||||
if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown").VirtualKeyCode))
|
if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown,IncludeKeyUp").VirtualKeyCode))
|
||||||
{
|
{
|
||||||
Write-Verbose "CTRL or ESC caught. Stopping UDP Setup..."
|
Write-Verbose "CTRL or ESC caught. Stopping UDP Setup..."
|
||||||
$FuncVars["Socket"].Close()
|
$FuncVars["Socket"].Close()
|
||||||
@ -451,7 +451,7 @@ Examples:
|
|||||||
{
|
{
|
||||||
if($Host.UI.RawUI.KeyAvailable)
|
if($Host.UI.RawUI.KeyAvailable)
|
||||||
{
|
{
|
||||||
if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown").VirtualKeyCode))
|
if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown,IncludeKeyUp").VirtualKeyCode))
|
||||||
{
|
{
|
||||||
Write-Verbose "CTRL or ESC caught. Stopping TCP Setup..."
|
Write-Verbose "CTRL or ESC caught. Stopping TCP Setup..."
|
||||||
if($FuncVars["l"]){$Socket.Stop()}
|
if($FuncVars["l"]){$Socket.Stop()}
|
||||||
|
Loading…
Reference in New Issue
Block a user