In regular terminal bash sessions the "checkwinsize" option automatically updates the LINES and COLUMNS variables when the terminal is resized.
I\'m using x