credit @gabrielelana, http://www.shallowsky.com/linux/noaltscreen.html