9*80, 15*24);
inst->font_width * cfg.width, inst->font_height * cfg.height);
int main(int argc, char **argv){    GtkWidget *window;    extern int pty_master_fd;	       /* declared in pty.c */    gtk_init(&argc, &argv);    do_defaults(NULL, &cfg);    init_ucs();    back = &pty_backend;    back->init(NULL, 0, NULL, 0);    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);    inst->area = gtk_drawing_area_new();    gtk_drawing_area_size(GTK_DRAWING_AREA(inst->area),			  9*80, 15*24);/* FIXME: proper resizing stuff */    gtk_container_add(GTK_CONTAINER(window), inst->area);    gtk_signal_connect(GTK_OBJECT(window), "destroy",		       GTK_SIGNAL_FUNC(destroy), inst);    gtk_signal_connect(GTK_OBJECT(window), "delete_event",		       GTK_SIGNAL_FUNC(delete_window), inst);    gtk_signal_connect(GTK_OBJECT(window), "key_press_event",		       GTK_SIGNAL_FUNC(key_event), inst);    gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",		       GTK_SIGNAL_FUNC(focus_event), inst);    gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",		       GTK_SIGNAL_FUNC(focus_event), inst);    gtk_signal_connect(GTK_OBJECT(inst->area), "configure_event",		       GTK_SIGNAL_FUNC(configure_area), inst);    gtk_signal_connect(GTK_OBJECT(inst->area), "expose_event",		       GTK_SIGNAL_FUNC(expose_area), inst);    gtk_timeout_add(20, timer_func, inst);    gdk_input_add(pty_master_fd, GDK_INPUT_READ, pty_input_func, inst);    gtk_widget_add_events(GTK_WIDGET(inst->area),			  GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK);    gtk_widget_show(inst->area);    gtk_widget_show(window);    inst->textcursor = gdk_cursor_new(GDK_XTERM);    inst->rawcursor = gdk_cursor_new(GDK_ARROW);    gdk_window_set_cursor(inst->area->window, inst->textcursor);    term_init();    term_size(24, 80, 2000);    gtk_main();    return 0;}