Make CursorUp, SetCursor etc constructors of TerminalAction
Move types to Types