summaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/printf.c b/src/printf.c
index f812212f5..0c709864b 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -199,28 +199,28 @@ print_esc_char (int c)
switch (c)
{
case 'a': /* Alert. */
- putchar (7);
+ putchar ('\a');
break;
case 'b': /* Backspace. */
- putchar (8);
+ putchar ('\b');
break;
case 'c': /* Cancel the rest of the output. */
exit (EXIT_SUCCESS);
break;
case 'f': /* Form feed. */
- putchar (12);
+ putchar ('\f');
break;
case 'n': /* New line. */
- putchar (10);
+ putchar ('\n');
break;
case 'r': /* Carriage return. */
- putchar (13);
+ putchar ('\r');
break;
case 't': /* Horizontal tab. */
- putchar (9);
+ putchar ('\t');
break;
case 'v': /* Vertical tab. */
- putchar (11);
+ putchar ('\v');
break;
default:
putchar (c);