X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=src%2Ftty.c;h=df7c13fbe3b0ba7dfe2c5db03ca03100de6b1658;hp=f27afea2bff68c1990956a3dc80494d0d151fc81;hb=3e72a1f6fc28777c26e4fb109867bd2a3c7b89b0;hpb=a42924fd0dd9843cb1b0809f61b018d31e10042f 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); }