I wrote: > Peter Geoghegan <p...@bowt.ie> writes: >> Once I comment out the following two lines from ~/.inputrc, everything >> works fine on >> HEAD + HEAD-unset-TERM-in-tab-completion-test.patch: >> set colored-completion-prefix on >> set colored-stats on
> Hm. I wonder how it is that that leads to ignoring the TERM environment? A bit of digging says that readline's color support is just hard-wired to use xterm-style escapes -- it doesn't look like there's any connection to terminfo at all. See the _rl_color_indicator[] data structure. The \e[...m and \e[K escape sequences can both be found there. regards, tom lane