Is it possible to make changes to a line written to STDOUT in shell, similar to the way many programs such as scp do?
The point would be to allow me to essentially have a ticker, or a monitor of some sort, without it scrolling all over the screen.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can manipulate the terminal with control characters and ANSI escape codes. For example
\breturns the cursor one position back, and\rreturns it to the beginning of the line. This can be used to make a simple ticker:With ANSI escape codes you can do even more, like clear part of the screen, jump to any position you want, and change the output color.