図でなくTableを使っているので綺麗に表示されます。 縦が上バイト、横が下バイト。 1B(1b)だとESCです。 制御文字にマウスポインタをあわせると日本語と英語の意味とCtrl+の割り当てとPythonやNodeJSで使うエスケープシーケンスコードが表示されます。
ASCII 表
16進数 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | [tooltips keyword="NULL" content="Null character (Ctrl+@), \\x00"] | [tooltips keyword="SOH" content="Start of Header ヘッディング開始\ (Ctrl+A), \\x01"] | [tooltips keyword="STX" content="Start of Text テキスト開始 (Ctrl+B), \\x02"] | [tooltips keyword="ETX" content="End of Text テキスト終結 (Ctrl+C), \\x03 SIGINT"] | [tooltips keyword="EOT " content="End of Transmission 伝送終了 (Ctrl+D), \\x04"] | [tooltips keyword="ENQ" content="Enquiry 問い合わせ (Ctrl+E), \\x05"] | [tooltips keyword="ACK" content="Acknowledge 肯定応答 (Ctrl+F), \\x06"] | [tooltips keyword="BEL" content="Bell ベル (Ctrl+G), \\x07"] | [tooltips keyword="BS" content="Backspace バックスペース (Ctrl+H), \\b or \\x08"] | [tooltips keyword="HT" content="Horizontal tab 水平タブ (Ctrl+I), \\t or \\x09"] | [tooltips keyword="LF" content="Line Feed 改行 (Ctrl+J), \\n or \\x0A"] | [tooltips keyword="VT" content="Vertical tab 垂直タブ (Ctrl + K), \\v or \\x0B"] | [tooltips keyword="FF" content="Feed Forward 改ページ (Ctrl+L), \\f or \\x0C"] | [tooltips keyword="CR" content="Carriage Return 復帰 (Ctrl+M), \\r or \\x0D or \\13"] | [tooltips keyword="SO" content="Shift out シフトアウト (Ctrl+N), \\x0E"] | [tooltips keyword="SI" content="Shift in シフトイン (Ctrl + O), \\x0F"] |
1 | [tooltips keyword="DLE" content="Data Link Escape 伝送制御拡張 (Ctrl+P), \\x10"] | [tooltips keyword="DC1" content="Xon(transmit on) Device Control 1 装置制御 1 (Ctrl+Q), \\x11"] | [tooltips keyword="DC2" content="Device Control 2 装置制御 2 (Ctrl+R), \\x12"] | [tooltips keyword="DC3" content="Xoff(transmit off) Device Control 3 装置制御 3 (Ctrl+S), \\x13"] | [tooltips keyword="DC4" content="Device Control 4 装置制御 4 (Ctrl+T), \\x14"] | [tooltips keyword="NAK" content="Nagative acknowledge 否定応答 (Ctrl+U), \\x15"] | [tooltips keyword="SYN" content="Sychronous idle 同期信号 (Ctrl+V), \\x16"] | [tooltips keyword="ETB" content="End of Transmission Block 伝送ブロック終結 (Ctrl+W), \\x17"] | [tooltips keyword="CAN" content="Cancel 取り消し (Ctrl+X), \\x18"] | [tooltips keyword="EM" content="End of medium メディア終端 (Ctrl+Y), \\x19"] | [tooltips keyword="SUB" content="Substitute 置換 (Ctrl+Z), \\x1A SIGSTP"] | [tooltips keyword="ESC" content="Escape エスケープ (Ctrl+[), \\x1B"] | [tooltips keyword="FS" content="File separator ファイル分離文字 (Ctrl+\), \\x1C SIGQUIT"] | [tooltips keyword="GS" content="Group separator グループ分離文字 (Ctrl+]), \\x1D"] | [tooltips keyword="RS" content="Record separator レコード分離文字 (Ctrl+^), \\x1E"] | [tooltips keyword="US" content="Unit separator ユニット分離文字 (Ctrl+_), \\x1F"] |
2 | [tooltips keyword="SP" content="Space 空白"] | ! | [tooltips keyword='"' content=' \\"'] | # | $ | % | & | [tooltips keyword="'" content=" \\'"] | ( | ) | * | + | , | - | . | / |
3 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
4 | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
5 | P | Q | R | S | T | U | V | W | X | Y | Z | [ | [tooltips keyword="¥" content="ファイル分離文字 \\¥"] | ] | ^ | _ |
6 | ` | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o |
7 | p | q | r | s | t | u | v | w | x | y | z | { | | | } | ~ | [tooltips keyword="DEL" content="Delete 削除 SIGINT"] |
自分のメモ
イベントシグナル
Process | Node.js v21.7.3 Documentation
EOF(End of File)
nodejsbのprocess.stdin.on(‘end’,)に必要
Windowsの場合、Ctrl+Z(\x1A)の後に\x0D\x0Aが必要。
C言語の場合は、EOFは(int)-1。
コメント