From a0aa94e16bb6a377e217d8540085402a911fe079 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 17 Jun 2017 15:05:02 +0000 Subject: [PATCH] Handle escape characters in terminal.sh write --- terminal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.sh b/terminal.sh index 4b7efea..7eb43dd 100755 --- a/terminal.sh +++ b/terminal.sh @@ -62,7 +62,7 @@ backlight () { } write () { - echo -n "${@:1}" > "$PORT" + echo -ne "${@:1}" > "$PORT" } stty -F "$PORT" -crtscts -hupcl "$BAUD" -- 2.20.1