I have seen this '[A' in a progress bar module but I can’t figure out what it does.
As in:
print '[]', chr(27) + '[A'
Do you know what it does??
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.
It’s a VT100 Escape sequence; it moves the cursor up.
Note that the
chr(27)initiates the sequence. Often, this might be written"\033[A"(since33oct == 27dec). If you’ve ever added color to a bash prompt, you’ve seen this.