Better sanitizing.

This commit is contained in:
bʰedoh₂ swé 2025-01-15 04:09:01 +05:00
parent 92dda7f46d
commit b58b64c77b

View File

@ -92,7 +92,7 @@ decrypt() {
print_messages() {
open_socket
echo -n 2 >&3
head -c "${1}" <&3 | decrypt | sed -e 's/\x1B/ESC/g' -e 's/\x0D/RET/g' -e 's/\x08/BAC/g'
head -c "${1}" <&3 | decrypt | sed -e 's/\x1B/ESC/g' -e 's/\x0D/RET/g' -e 's/\x08/BAC/g' -e 's/\x0C/FF/g' -e 's/\x0B/VT/g' -e 's/\x07/BEL/g'
close_socket
}