summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-01-27 00:04:22 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-01-27 00:04:22 +0800
commit225f19e0283a0fff5657246004afdc1c1fb04c82 (patch)
tree290b3e034534a81f4db55bf86099827276855318
parentd7d612598af0603c149cb73cd651ae76f4b5056f (diff)
fix: online
-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