On X11, this information is set as part of the hints given to the window manager. When resizing the terminal, many X11 window managers will now correctly report the current cell size of the terminal (e.g., 80x24) as an overlay when resizing the window.