added console window setting

SetWindow helper function
broke cplex