noctuid / zscroll

A text scroller for panels or terminals
GNU General Public License v3.0
198 stars 10 forks source link

Scroll once? #21

Open Barbaross93 opened 1 year ago

Barbaross93 commented 1 year ago

Would it be possible to include an option to scroll the text only once?

duarm commented 1 year ago

do you mean scroll the text n times and then exit? On that case, I use https://gitlab.com/kurenaiz/ssscroll

$ printf "123456" | ssscroll -t 3 -o 2
# 345
$ for i in $(seq 0 10); do printf "μ's - 始まりの朝 (メインテーマ)" | ssscroll -t 10 -a "|" -p ">" -f -o $i; done
# >μ's - 始ま |
# >'s - 始まり|
# >s - 始まり |
# > - 始まりの|
# >- 始まりの |
# > 始まりの朝|
# >始まりの朝 |
# >まりの朝 ( |
# >りの朝 (メ |
# >の朝 (メイ |
# >朝 (メイン |