I just ran into this by doing `conda install -c r r-irkernel`, but it's easily reproducible with just:
conda install ncurses
hash -r
tput
I don't think it's changing the TERM value (mine has been xterm-256color without issue for a long time), but somehow the ncurses package installs commands (tput, tset, etc.) that don't actually work. As above, `conda remove ncurses` after the fact fixes the immediate problem, but I'm not sure what it breaks, if anything. I presume the dependency is in there for a reason.
So I'm guessing this is a problem in the ncurses conda package not being able to find its own terminfo, but I don't know enough about how that stuff works. I do see the terminfo tree in $PREFIX/share/terminfo.
-MinRK