The most recent stable zsh ebuild (zsh-4.0.6-r3.ebuild) doesn't include curses terminfo. The ebuild DEPENDs on >=sys-libs/ncurses-5.1, but it just forgets to use it in the configure step. Adding the simple line: "--with-curses-terminfo" to the configure step fixes it. I've attached zsh-4.0.6-r4.ebuild which contains the fix. Reproducible: Always Steps to Reproduce: 1. emerge zsh 2. ssh to the machine with zsh with your TERM set to something like "crt" 3. watch it complain about your terminal, and not work correctly Actual Results: prompt colors, etc. didn't work Expected Results: colors should have worked. After emerging my fixed ebuild (attached), everything works dandy.
Created attachment 9481 [details] fixed zsh ebuild
I updated and bumped 4.0.6 to r4, it now uses the ncurses USE flag. I also included such functionality in the spankin' new 4.1.0-pre7 (dev branch). The zshall bugs were fixed in both as well, so an upgrade is a good thing.
One glitch: the zsh-4.1.0_pre7.ebuild contains --with-curses-terminfo explicitly in the econf section as well as adding it optionally via the MYCONF variable (that bug is not in zsh-4.0.6-r4.ebuild, though).