Is there an elegant solution to do this shell script in Python without importing os ?
tput cup 14 15; echo -ne "\033[1;32mtest\033[0m" ; tput cup 50 0
This just has been gnawing in my mind for some time now 🙂
Thanks
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.
All the terminfo capabilities are accessible via
curses. Initialize it and usecurses.tiget*()to get the capabilities you care about.