ply_trace ("activating renderer");
ply_renderer_activate (renderer);
}
+
+ if (terminal != NULL)
+ ply_terminal_refresh_geometry (terminal);
} else if (terminal != NULL) {
keyboard = ply_keyboard_new_for_terminal (terminal);
ply_list_append_data (manager->keyboards, keyboard);
ply_terminal_reopen_device (terminal);
}
-static bool
-ply_terminal_look_up_geometry (ply_terminal_t *terminal)
+bool
+ply_terminal_refresh_geometry (ply_terminal_t *terminal)
{
struct winsize terminal_size;
return false;
}
- ply_terminal_look_up_geometry (terminal);
+ ply_terminal_refresh_geometry (terminal);
ply_terminal_look_up_color_palette (terminal);
ply_terminal_save_color_palette (terminal);
ply_event_loop_watch_signal (terminal->loop,
SIGWINCH,
(ply_event_handler_t)
- ply_terminal_look_up_geometry,
+ ply_terminal_refresh_geometry,
terminal);
if (ply_terminal_is_vt (terminal)) {
bool ply_terminal_set_unbuffered_input (ply_terminal_t *terminal);
bool ply_terminal_set_buffered_input (ply_terminal_t *terminal);
+bool ply_terminal_refresh_geometry (ply_terminal_t *terminal);
__attribute__((__format__ (__printf__, 2, 3)))
void ply_terminal_write (ply_terminal_t *terminal,