PowerShell/Scripts/list-ascii-table.ps1
2023-06-30 20:39:17 +02:00

45 lines
1.8 KiB
PowerShell

<#
.SYNOPSIS
Lists the ASCII table
.DESCRIPTION
This PowerShell script lists the ASCII table on the console.
.EXAMPLE
PS> ./list-ascii-table.ps1
ASCII TABLE
Dec Oct Hex HTML Symbol Description
--- --- --- ---- ------ -----------
0 000 00 &#00; NUL Null character
...
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
""
Write-Host "ASCII TABLE" -foregroundColor green
""
"Dec Oct Hex HTML Symbol Description"
"--- --- --- ---- ------ -----------"
" 0 000 00 &#00; NUL Null character"
" 1 001 01 &#01; SOH Start of Heading"
" 2 002 02 &#02; STX Start of Text"
" 3 003 03 &#03; ETX End of Text"
" 4 004 04 &#04; EOT End of Transmission"
" 5 005 05 &#05; ENQ Enquiry"
" 6 006 06 &#06; ACK Acknowledge"
" 7 007 07 &#07; BEL Bell, Alert"
" 8 010 08 &#08; BS Backspace"
" 9 011 09 &#09; HT Horizontal Tab"
" 10 012 0A &#10; LF Line Feed"
" 11 013 0B &#11; VT Vertical Tabulation"
" 12 014 0C &#12; FF Form Feed"
" 13 015 0D &#13; CR Carriage Return"
" 14 016 0E &#14; SO Shift Out"
" 15 017 0F &#15; SI Shift In"
" 16 020 10 &#16; DLE Data Link Escape"
" 17 021 11 &#17; DC1 Device Control One (XON)"
" 18 022 12 &#18; DC2 Device Control Two"
" 19 023 13 &#19; DC3 Device Control Three (XOFF)"
exit 0 # success