-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a9b1e8
commit ccf8ceb
Showing
7 changed files
with
86 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
if ($Host.UI.SupportsVirtualTerminal) { | ||
$Escape = [char]27 + '[' | ||
function Escape { [char]27 + '[' + $args } | ||
$global:VirtualTerminal = @{ | ||
Escape = $Escape | ||
Escape = Escape | ||
Colors = @{ | ||
Black = $Escape + '30m' | ||
Red = $Escape + '31m' | ||
Green = $Escape + '32m' | ||
Yellow = $Escape + '33m' | ||
Blue = $Escape + '34m' | ||
Magenta = $Escape + '35m' | ||
Cyan = $Escape + '36m' | ||
White = $Escape + '37m' | ||
Default = $Escape + '39m' | ||
BrightBlack = $Escape + '90m' | ||
BrightRed = $Escape + '91m' | ||
BrightGreen = $Escape + '92m' | ||
BrightYellow = $Escape + '93m' | ||
BrightBlue = $Escape + '94m' | ||
BrightMagenta = $Escape + '95m' | ||
BrightCyan = $Escape + '96m' | ||
BrightWhite = $Escape + '97m' | ||
Reset = $Escape + '39m' | ||
Black = Escape '30m' | ||
Red = Escape '31m' | ||
Green = Escape '32m' | ||
Yellow = Escape '33m' | ||
Blue = Escape '34m' | ||
Magenta = Escape '35m' | ||
Cyan = Escape '36m' | ||
White = Escape '37m' | ||
Default = Escape '39m' | ||
BrightBlack = Escape '90m' | ||
BrightRed = Escape '91m' | ||
BrightGreen = Escape '92m' | ||
BrightYellow = Escape '93m' | ||
BrightBlue = Escape '94m' | ||
BrightMagenta = Escape '95m' | ||
BrightCyan = Escape '96m' | ||
BrightWhite = Escape '97m' | ||
Reset = Escape '39m' | ||
} | ||
Styles = @{ | ||
Italic = $Escape + '3m' | ||
Underline = $Escape + '4m' | ||
Blink = $Escape + '5m' | ||
Reverse = $Escape + '7m' | ||
Hide = $Escape + '8m' | ||
NoItalic = $Escape + '23m' | ||
NoUnderline = $Escape + '24m' | ||
NoBlink = $Escape + '25m' | ||
NoReverse = $Escape + '27m' | ||
NoHide = $Escape + '28m' | ||
Reset = $Escape + '23m' | ||
Italic = Escape '3m' | ||
Underline = Escape '4m' | ||
Blink = Escape '5m' | ||
Reverse = Escape '7m' | ||
Hide = Escape '8m' | ||
NoItalic = Escape '23m' | ||
NoUnderline = Escape '24m' | ||
NoBlink = Escape '25m' | ||
NoReverse = Escape '27m' | ||
NoHide = Escape '28m' | ||
Reset = Escape '23m' | ||
} | ||
ResetAll = $Escape + '0m' | ||
ResetColors = $Escape + '39m' | ||
ResetStyles = $Escape + '23m' | ||
ResetAll = Escape '0m' | ||
ResetColors = Escape '39m' | ||
ResetStyles = Escape '23m' | ||
|
||
#保存当前光标位置 | ||
SaveCursor = $Escape + 's' | ||
SaveCursor = Escape 's' | ||
#恢复光标位置 | ||
RestoreCursor = $Escape + 'u' | ||
RestoreCursor = Escape 'u' | ||
#清除从光标到行尾的内容 | ||
ClearLine = $Escape + 'K' | ||
ClearLine = Escape 'K' | ||
#清除从光标到行首的内容 | ||
ClearLineLeft = $Escape + '1K' | ||
ClearLineLeft = Escape '1K' | ||
#清除整行 | ||
ClearLineAll = $Escape + '2K' | ||
ClearLineAll = Escape '2K' | ||
#清除从光标到屏幕底部的内容 | ||
ClearScreenDown = $Escape + 'J' | ||
ClearScreenDown = Escape 'J' | ||
#清除从屏幕顶部到光标的内容 | ||
ClearScreenUp = $Escape + '1J' | ||
ClearScreenUp = Escape '1J' | ||
#清除整屏 | ||
ClearScreenAll = $Escape + '2J' | ||
ClearScreenAll = Escape '2J' | ||
} | ||
Remove-Variable Escape | ||
Remove-Item function:Escape | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
. "$($EshellUI.Sources.Path)/src/scripts/Console.ps1" | ||
Set-ConsoleIcon "$($EshellUI.Sources.Path)/img/cmd.ico" | ||
Remove-Item function:Set-ConsoleIcon | ||
Remove-Item function:Set-WindowIcon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters