mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Also strip backspace from log
To make log strip feature consistent so that we remove all unprintable control characters and escape sequences.
This commit is contained in:
parent
1e8c950e9d
commit
1636a55b7e
1 changed files with 1 additions and 5 deletions
|
|
@ -83,12 +83,8 @@ bool log_strip(char c)
|
||||||
/* Detect if character should be stripped or not */
|
/* Detect if character should be stripped or not */
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
case 0x8:
|
|
||||||
/* Backspace */
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 0xa:
|
case 0xa:
|
||||||
/* Line feed */
|
/* Line feed / new line */
|
||||||
/* Reset ESC sequence just in case something went wrong with the
|
/* Reset ESC sequence just in case something went wrong with the
|
||||||
* escape sequence parsing. */
|
* escape sequence parsing. */
|
||||||
esc_sequence = false;
|
esc_sequence = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue