win->input_request_type = INPUT_REQUEST_NONE;
win->line_input_buffer = NULL;
win->line_input_buffer_unicode = NULL;
+ win->history = NULL;
/* Initialise the buffer */
win->buffer = g_string_sized_new(1024);
g_node_destroy(win->window_node);
win->magic = MAGIC_FREE;
+ g_list_foreach(win->history, g_free, NULL);
+ g_list_free(win->history);
+
g_string_free(win->buffer, TRUE);
g_free(win);
}
void
glk_window_set_arrangement(winid_t win, glui32 method, glui32 size, winid_t keywin)
{
+ printf("set_arrangement(%d)\n", size);
VALID_WINDOW(win, return);
VALID_WINDOW_OR_NULL(keywin, return);
g_return_if_fail(win->type == wintype_Pair);
VALID_WINDOW(win, return);
g_return_if_fail(win->type == wintype_TextGrid);
+ flush_window_buffer(win);
+
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
/* Wait until the window's size is current */
ypos += xpos / win->width;
xpos %= win->width;
}
+
/* Go to the end if the cursor is moved off the bottom edge */
if(ypos >= win->height)
{