Work with 256 colors by handling complex terminfo parameterized strings