Fix window size in the Qt terminal