$ irssi
NO WINDOWS: -!- Irssi: Invalid charset: CP1252
setupterm() failed for TERM=xterm: 0
Can't initialize screen handling, quitting.
You can still use the dummy mode with -d parameter
I kept getting the aforementioned error while trying to start irssi under chroot/jails environment. Making sure that ncurses and other needed libraries are already present in the jail environment didn’t solve the problem either.
The Solution:
make sure /usr/share/terminfo/x/*
is copied into jail