Don't have Telegram yet? Try it now!
http://blog.amit-agarwal.com/2010/06/17/using-tput-to-save-clear-and-restore-the-terminal-contents/
Using tput to save, clear and restore the terminal contents