aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/tty.c b/src/tty.c
index f27afea..df7c13f 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.19 2008/02/28 16:57:52 james
+ * *** empty log message ***
+ *
* Revision 1.18 2008/02/28 16:37:16 james
* *** empty log message ***
*
@@ -340,13 +343,18 @@ tty_hangup (TTY * t)
}
+void tty_length(TTY *t,int l)
+{
+t->displayed_length=l;
+}
-void tty_winch(TTY * t,CRT_Pos size)
+void
+tty_winch (TTY * t, CRT_Pos size)
{
struct winsize sz = { 0 };
- sz.ws_col=size.x;
- sz.ws_row=size.y;
+ sz.ws_col = size.x;
+ sz.ws_row = size.y;
ioctl (t->wfd, TIOCSWINSZ, &sz);
}