Replace the <escape> character with the \e escape sequence

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2023-05-18 19:59:10 -03:00
parent 57600b0e22
commit e6cc0ef44f
+2 -2
View File
@@ -24,8 +24,8 @@ function echoEvent($datatext)
// Detect ${OVER} and replace it with something we can safely transmit
// This allows every line (including progress and error messages) to be shown on the page
// Replace "\r" (generated by gravity.sh) with "<------"
$datatext = str_replace("\r", '<------', $datatext);
// Replace "\r\e[K" ("CR+ESC+[" generated by gravity.sh) with "<------"
$datatext = str_replace("\r\e[K", '<------', $datatext);
// Replace "\r" generated by "pihole-FTL gravity parseList" command
$datatext = str_replace("\r", '<------', $datatext);