trapd00r/Term-ExtendedColor-Xresources — pull request #6 by richardjharris (2012-02-26 01:59:49+00:00)
Title: An alternate tty reading routine

Do you mind testing this? The current implementation does not work on my system. The color lookup response is
"\a\e]4;xxx;rgb:rrrr/gggg/bbbb" (max 27 characters, with each RGB
value duplicated). Since we only grab 23, this isn't enough and
many of the color lookups fail. Additionally the module causes the
TTY to spew some output to the user, and requires a 'reset' for the terminal to function afterwards.

Changing 23 to 26 causes the tty to hang. So instead we replace
it with a loop that reads until the full response has been read.

It may be that the .{4} needs to be .{2,4} to be compatible with some terminals.