Another issue:
Stdio.Terminfo.Terminfo()->create("/usr/share/terminfo/x/xterm")
still doesn't work with a new /usr/share/terminfo/x/xterm. I've copied an old one there, and it fixes the problem.
This happens when I start Pike:
Pike v7.6 release 64 running Hilfe v3.5 (Incremental Pike Frontend) Start must not be greater than the length of the string. Unknown program: search("\5\33[Z\0\a\0\r\0\33[%i%p1%d;%p2%dr\0\33[3g\0\33[H\33[2J\0\33[K\0\33[J\0\33[%i%p1%dG\0\33[%i%p1%d;%p2%dH\0\n\0\33[H\0\33[?25l\0\b\0\3 3[?12l\33[?25h\0\33[C\0\33[A\0\33[?12;25h\0\33[P\0\33[M\0\33(0\0\33[5m\0\33[1m\0\33[?1049h\0\33[4h\0\33[8m\0\33[7m\0\33[7m\0\33[4m\0\33[%p1%d X\0\33("+[1132],"\0",1536) /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:383: Stdio.Terminfo.Terminfo()->__lambda_66217_0_line_380(1536,"\5\33[Z\0\a\0\r\0\33[%i%p1%d;%p2%dr\0\33[3g\0\33[H\33[2J\0\33[K\0\33[J\0\33[%i%p1% dG\0\33[%i%p1%d;%p2%dH\0\n\0\33[H\0\33[?25l\0\b\0\33[?12l\33[?25h\0\33[C\0\33[A\0\33[?12;25h\0\33[P\0\33[M\0\33(0\0\33[5m\0\33[1m\0\33[?1049h \0\33[4h\0\33[8m\0\33[7m\0\33[7m\0\33[4m\0\33[%p1%dX\0\33(B\0\33["+[1128]) /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:379: Stdio.Terminfo.Terminfo()->load_cap(Stdio.File("/usr/share/terminfo/x/xterm", "r", 666 /* fd=9 */),UNDEFINED) /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:403: Stdio.Terminfo.Terminfo()->create("/usr/share/terminfo/x/xterm") /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:19: Stdio.Terminfo->Terminfo() /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:721: Stdio.Terminfo.TerminfoDB()->load("xterm") /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:780: Stdio.Terminfo->getTerminfo("xterm") /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:812: Stdio.Terminfo->getTerm("xterm") /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Terminfo.pmod:804: Stdio.Terminfo->getTerm(UNDEFINED) /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Readline.pike:423: Stdio.Readline()->OutputController()->create(UNDEFINED,UNDEFINED) /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Readline.pike:1205: Stdio.Readline()->OutputController() /usr/local/pike/7.6.64/lib/modules/Stdio.pmod/Readline.pike:1671: Stdio.Readline()->create(UNDEFINED,UNDEFINED,UNDEFINED,UNDEFINED) /usr/local/pike/7.6.64/lib/modules/Tools.pmod/Hilfe.pmod:2250: Tools.Hilfe.StdinHilfe()->create(UNDEFINED) /usr/local/pike/7.6.64/lib/modules/Tools.pmod/Hilfe.pmod:92: Tools.Hilfe->StdinHilfe()
The /usr/share/terminfo/x/xterm that couses the problem can be found on:
http://www.linkmeet.com/stuff/xterm
if you want to have something to test with.