Move Terminal#type functionality from Handler to ASyncTask