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
############################################################################################################ | |
# Get-ConsoleAsHtml.ps1 | |
# | |
# The script captures console screen buffer up to the current cursor position and returns it in HTML format. | |
# | |
# Returns: UTF8-encoded string. | |
# | |
# Example: | |
# | |
# $htmlFileName = "$env:temp\ConsoleBuffer.html" |