Handle escape characters in terminal.sh write
authorCamil Staps <info@camilstaps.nl>
Sat, 17 Jun 2017 15:05:02 +0000 (15:05 +0000)
committerCamil Staps <info@camilstaps.nl>
Sat, 17 Jun 2017 15:05:02 +0000 (15:05 +0000)
terminal.sh

index 4b7efea..7eb43dd 100755 (executable)
@@ -62,7 +62,7 @@ backlight () {
 }
 
 write () {
-       echo -n "${@:1}" > "$PORT"
+       echo -ne "${@:1}" > "$PORT"
 }
 
 stty -F "$PORT" -crtscts -hupcl "$BAUD"