1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: main.c |
2 | * File: main.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: main.C,v 1.19 2003/12/24 09:22:29 pcg Exp $ |
4 | * $Id: main.C,v 1.20 2004/01/16 16:34:56 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
636 | * Called after a window size change. |
636 | * Called after a window size change. |
637 | */ |
637 | */ |
638 | void |
638 | void |
639 | rxvt_term::tt_winch () |
639 | rxvt_term::tt_winch () |
640 | { |
640 | { |
641 | struct winsize ws; |
641 | struct winsize ws; |
642 | |
642 | |
643 | if (cmd_fd < 0) |
643 | if (cmd_fd < 0) |
644 | return; |
644 | return; |
645 | |
645 | |
646 | ws.ws_col = TermWin.ncol; |
646 | ws.ws_col = TermWin.ncol; |