Better escaping.

This commit is contained in:
bʰedoh₂ swé 2025-01-12 19:10:41 +05:00
parent 2590a5afe8
commit 7ece0a814a

View File

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