summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands/printf.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commands/printf.c b/src/commands/printf.c
index fd08aa8..4663a86 100644
--- a/src/commands/printf.c
+++ b/src/commands/printf.c
@@ -72,6 +72,19 @@ static void handle_slash(char n) {
case 'b':
putchar('\b');
break;
+ case 'f':
+ putchar('\f');
+ break;
+ case 'e':
+ putchar('\e');
+ case 'a':
+ putchar('\a');
+ break;
+ case '"':
+ putchar('"');
+ break;
+ case 'c':
+ exit(EXIT_SUCCESS);
default:
putchar('\\');
putchar(n);