To make things portable look up termcap(5) and tput(1) to ask the termcap database for the right control sequence for your terminal, and use those.
Maybe they bet those sequences are the same on all terminals since 1970, espacially those marked "DEC Private" and it won't change soon?
I honestly don't know.