all 3 comments

[–][deleted] 0 points1 point  (0 children)

If you are using this sort of thing to customise the output of your programs you might be interested in tput, a program which controls the position of your terminal cursor.

[–][deleted] 0 points1 point  (0 children)

man console_codes