Fix to work properly in GNU Screen