From 1636a55b7e0938ad6d9f8f1635c4e17b6fa298df Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Thu, 16 Jun 2022 15:44:46 +0200 Subject: [PATCH] Also strip backspace from log To make log strip feature consistent so that we remove all unprintable control characters and escape sequences. --- src/log.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/log.c b/src/log.c index 8faa9c2..5366503 100644 --- a/src/log.c +++ b/src/log.c @@ -83,12 +83,8 @@ bool log_strip(char c) /* Detect if character should be stripped or not */ switch (c) { - case 0x8: - /* Backspace */ - break; - case 0xa: - /* Line feed */ + /* Line feed / new line */ /* Reset ESC sequence just in case something went wrong with the * escape sequence parsing. */ esc_sequence = false;