chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / tty.c
index e165dd58d8a24b63438d36089010a8fd5a7b4865..f27afea2bff68c1990956a3dc80494d0d151fc81 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -10,6 +10,12 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.18  2008/02/28 16:37:16  james
+ * *** empty log message ***
+ *
+ * Revision 1.17  2008/02/28 15:37:06  james
+ * *** empty log message ***
+ *
  * Revision 1.16  2008/02/28 12:12:25  james
  * *** empty log message ***
  *
@@ -321,12 +327,6 @@ tty_set_flow (TTY * t, int flow)
 
 }
 
-void tty_winch(TTY *y,CRT_Pos p)
-{
-//FIXME:
-
-}
-
 void
 tty_hangup (TTY * t)
 {
@@ -341,6 +341,18 @@ tty_hangup (TTY * t)
 }
 
 
+void tty_winch(TTY * t,CRT_Pos size)
+{
+  struct winsize sz = { 0 };
+
+  sz.ws_col=size.x;
+  sz.ws_row=size.y;
+
+  ioctl (t->wfd, TIOCSWINSZ, &sz);
+}
+
+
+
 #if 0
 typedef struct
 {