The problem happens only in the X terminals (e. g. xfce-terminal inside XFCE). So it seems to be problem of X environment.