npc(1): commenting

This commit is contained in:
Emma Tebibyte 2024-07-14 03:17:21 -06:00
parent fd1ed79329
commit 49031102f2
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -30,11 +30,8 @@ int usage(char *s) {
int main(int argc, char *argv[]) {
int c;
char showend;
char showtab;
showend = 0;
showtab = 0;
char showend = 0; /* print a dollar sign before each newline */
char showtab = 0; /* prints tab characters in caret notation */
if (argc > 0) {
while ((c = getopt(argc, argv, "et")) != -1) {
@ -52,7 +49,7 @@ int main(int argc, char *argv[]) {
if ((c & 0x80) != 0) { fputs("M-", stdout); }
switch (c ^ 0x80) { /* 0b 1000 0000 */
case 0x7f: fputs("^?", stdout); break;
case 0x7f: fputs("^?", stdout); break; /* delete character */
case '\n': if (showend) { putc('$', stdout); }
default:
if (c >= ' ' || c == '\n' || (!showtab && c == '\t')) {