tem could support longer attribute chains
The console code only supports at most 5 parameters today, which is precisely enough to support the RGB escape sequences, but only on their own. It is supposed to be possible to chain these parameters in longer lists, and some applications rely on being able to do so. This is useful when the application is coming over a slower connection for example, to reduce the amount of time spent redrawing and to reduce the number of sequences sent when doing larger screen updates.
Bumping this parameter from 5 to 32 has very little impact on memory consumption (its just 32 integers, so 256 bytes) but does help improve the utility and compatibility of the console screen emulator when using applications which don't rely on curses or terminfo (which is becoming more common.)