ANSI modes and commands implemented