mirror of https://github.com/vitalif/e2fsprogs
ChangeLog, message.c:
message.c (safe_print): Fix to properly display ^A, ^B, etc. and to print Delete as ^?bitmap-optimize
parent
dab278af81
commit
ec8d2c3f6e
|
@ -1,5 +1,8 @@
|
||||||
1999-11-19 <tytso@valinux.com>
|
1999-11-19 <tytso@valinux.com>
|
||||||
|
|
||||||
|
* message.c (safe_print): Fix to properly display ^A, ^B, etc. and
|
||||||
|
to print Delete as ^?
|
||||||
|
|
||||||
* Makefile.in (distclean): Remove TAGS and Makefile.in.old from
|
* Makefile.in (distclean): Remove TAGS and Makefile.in.old from
|
||||||
the source directory.
|
the source directory.
|
||||||
|
|
||||||
|
|
|
@ -148,9 +148,9 @@ static void safe_print(const char *cp, int len)
|
||||||
fputs("M-", stdout);
|
fputs("M-", stdout);
|
||||||
ch -= 128;
|
ch -= 128;
|
||||||
}
|
}
|
||||||
if (ch < 32) {
|
if ((ch < 32) || (ch == 0x7f)) {
|
||||||
fputc('^', stdout);
|
fputc('^', stdout);
|
||||||
ch += 32;
|
ch ^= 0x40; /* ^@, ^A, ^B; ^? for DEL */
|
||||||
}
|
}
|
||||||
fputc(ch, stdout);
|
fputc(ch, stdout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue