+}
+
+static void
+spiceterm_resize(spiceTerm *vt, uint32_t width, uint32_t height)
+{
+ DPRINTF(0, "width=%u height=%u", width, height);
+
+ if (vt->screen->width == width && vt->screen->height == height) {
+ return;
+ }
+
+ spice_screen_resize(vt->screen, width, height);
+
+ init_spiceterm(vt, width, height);
+
+ struct winsize dimensions;
+ dimensions.ws_col = vt->width;
+ dimensions.ws_row = vt->height;
+
+ ioctl(vt->pty, TIOCSWINSZ, &dimensions);
+}
+
+static spiceTerm *
+create_spiceterm(int argc, char** argv, uint32_t maxx, uint32_t maxy, guint timeout)
+{
+ SpiceCoreInterface *core = basic_event_loop_init();
+ SpiceScreen *spice_screen = spice_screen_new(core, maxx, maxy, timeout);
+
+ //spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF);