glk_window_get_size(mainwin, &width, &height);
fprintf(stderr, "\nWidth: %d\nHeight: %d\nPress a key in the window, not in the terminal.\n", width, height);
glk_request_char_event(mainwin);
glk_window_get_size(mainwin, &width, &height);
fprintf(stderr, "\nWidth: %d\nHeight: %d\nPress a key in the window, not in the terminal.\n", width, height);
glk_request_char_event(mainwin);