Added tab support to terminal