mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-28 11:20:36 +08:00
ChangeLog, message.c:
message.c (safe_print): Fix to properly display ^A, ^B, etc. and to print Delete as ^?
This commit is contained in:
parent
dab278af81
commit
ec8d2c3f6e
@ -1,5 +1,8 @@
|
||||
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
|
||||
the source directory.
|
||||
|
||||
|
@ -148,9 +148,9 @@ static void safe_print(const char *cp, int len)
|
||||
fputs("M-", stdout);
|
||||
ch -= 128;
|
||||
}
|
||||
if (ch < 32) {
|
||||
if ((ch < 32) || (ch == 0x7f)) {
|
||||
fputc('^', stdout);
|
||||
ch += 32;
|
||||
ch ^= 0x40; /* ^@, ^A, ^B; ^? for DEL */
|
||||
}
|
||||
fputc(ch, stdout);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user