From 225f19e0283a0fff5657246004afdc1c1fb04c82 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 27 Jan 2025 00:04:22 +0800 Subject: fix: online --- oneline | 7 +++++-- 1 file 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 -- cgit v1.2.3