Created
April 14, 2021 07:18
-
-
Save SomajitDey/4ed1c23b1be3f8c2f56b06413c335c3c to your computer and use it in GitHub Desktop.
UI to input long logical lines that occupy multiple terminal lines through wrapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while num=$(read -re -p "type: "|& tee /dev/tty|fold -w "$(tput cols)"|wc -l); do tput cuu $num;tput ed; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment