In some cases the terminal connection might not be correct. This usually happens for example when you connect via terminal,

export TERM=vt100