ChangeLog, message.c:

message.c (safe_print): Fix to properly display ^A, ^B, etc. and to
  	print Delete as ^?
This commit is contained in:
Theodore Ts'o 1999-11-19 18:52:36 +00:00
parent dab278af81
commit ec8d2c3f6e
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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);
}