Breaking Changes
Numeric representations of ASCII characters are now padded.
previously
CHARACTER BINARY OCTAL DECIMAL HEXADECIMAL
100000 40 32 20
! 100001 41 33 21
" 100010 42 34 22
currently
CHARACTER BINARY OCTAL DECIMAL HEXADECIMAL
0100000 040 032 20
! 0100001 041 033 21
" 0100010 042 034 22
New Features
ASCII Control Characters
ASCII control characters can now be included in both informational output and STDIN filtering.
--control
include the control characters--newline
include the newline character AND preserve newlines when filtering STDIN
When filtering STDIN the --control
option will include ASCII control characters in the output BUT the characters will be translated to printable ASCII. e.g. <NUL>
instead the literal NUL character.
If the --newline
option is given then newline will be specially preserved in the filtered output. Otherwise newline will be output as <EOL>
When including control characters in the informational output they will be represented by their abbreviations e.g. "NUL" instead of the literal NUL character.
$ printable-ascii --control -bd --name
CHARACTER BINARY DECIMAL NAME
NUL 0000000 000 NULL
SOH 0000001 001 START OF HEADING
STX 0000010 002 START OF TEXT
ETX 0000011 003 END OF TEXT
EOT 0000100 004 END OF TRANSMISSION
ENQ 0000101 005 ENQUIRY
ACK 0000110 006 ACKNOWLEDGE
BEL 0000111 007 BELL
BS 0001000 008 BACKSPACE
TAB 0001001 009 CHARACTER TABULATION
EOL 0001010 010 LINE FEED (LF)
VT 0001011 011 LINE TABULATION
FF 0001100 012 FORM FEED (FF)
CR 0001101 013 CARRIAGE RETURN (CR)
SO 0001110 014 SHIFT OUT
SI 0001111 015 SHIFT IN
DLE 0010000 016 DATA LINK ESCAPE
DC1 0010001 017 DEVICE CONTROL ONE
DC2 0010010 018 DEVICE CONTROL TWO
DC3 0010011 019 DEVICE CONTROL THREE
DC4 0010100 020 DEVICE CONTROL FOUR
NAK 0010101 021 NEGATIVE ACKNOWLEDGE
SYN 0010110 022 SYNCHRONOUS IDLE
ETB 0010111 023 END OF TRANSMISSION BLOCK
CAN 0011000 024 CANCEL
EOM 0011001 025 END OF MEDIUM
SUB 0011010 026 SUBSTITUTE
ESC 0011011 027 ESCAPE
FS 0011100 028 INFORMATION SEPARATOR FOUR
GS 0011101 029 INFORMATION SEPARATOR THREE
RS 0011110 030 INFORMATION SEPARATOR TWO
US 0011111 031 INFORMATION SEPARATOR ONE
DEL 1111111 127 DELETE