Fix to setterm