npc(1): move bit comment to be next to hex
This commit is contained in:
parent
a3ceb845e3
commit
7ff14214c3
|
@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
|
|||
while ((c = getc(stdin)) != EOF) {
|
||||
if ((c & 0x80) != 0) { fputs("M-", stdout); }
|
||||
|
||||
switch (c ^ 0x80) { /* 0b 1000 0000 */
|
||||
switch (c ^ 0x80 /* 0b 1000 0000 */) {
|
||||
case 0x7f: fputs("^?", stdout); break; /* delete character */
|
||||
case '\n': if (showend) { putc('$', stdout); }
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user