terminal type hack