For portability reasons, it's better to use tput attributs. This way your script will work an any kind of terminal. Escape sequences usually work on one terminal ( or one family) .
man tput for more ot goole tput terminfo.
tput clear ( clear screen )
tput smso ( set reverse video mode )
tput rmso ( reset reverse video )
tput smul ( set mode underline )
tput rmul ( reset mode underline)
tput cup x y ( cursor position )
and more
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.