summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xoneline7
1 files changed, 5 insertions, 2 deletions
diff --git a/oneline b/oneline
index b4915eb..f63cf1d 100755
--- a/oneline
+++ b/oneline
@@ -1,7 +1,10 @@
#!/bin/bash
-while read pipe; do
+tput sc
+
+while IFS= read -r pipe; do
tput rc; tput el
- printf "\r$pipe" | tr "\n" "\r"
+ printf "%s" "$pipe"
done
+
echo