This file contains hidden or 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
| function IsVirtualTerminalProcessingEnabled { | |
| $MethodDefinitions = @' | |
| [DllImport("kernel32.dll", SetLastError = true)] | |
| public static extern IntPtr GetStdHandle(int nStdHandle); | |
| [DllImport("kernel32.dll", SetLastError = true)] | |
| public static extern bool GetConsoleMode(IntPtr hConsoleHandle, out uint lpMode); | |
| '@ | |
| $Kernel32 = Add-Type -MemberDefinition $MethodDefinitions -Name 'Kernel32' -Namespace 'Win32' -PassThru | |
| $hConsoleHandle = $Kernel32::GetStdHandle(-11) # STD_OUTPUT_HANDLE | |
| $mode = 0 |
This file contains hidden or 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
| { | |
| "final_space": true, | |
| "console_title": true, | |
| "console_title_style": "folder", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "horizontal_offset": 0, | |
| "vertical_offset": 0, |
This file contains hidden or 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
| { | |
| "final_space": true, | |
| "console_title": true, | |
| "console_title_style": "folder", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "horizontal_offset": 0, | |
| "vertical_offset": 0, |
This file contains hidden or 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
| Write a function that converts an integer value to a null-terminated string | |
| using the specified base and stores the result in a char array that you must | |
| allocate. | |
| The base is expressed as an integer, from 2 to 16. The characters comprising | |
| the base are the digits from 0 to 9, followed by uppercase letter from A to F. | |
| For example, base 4 would be "0123" and base 16 "0123456789ABCDEF". | |
| If base is 10 and value is negative, the resulting string is preceded with a |