* Copyright (c) 1983 Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Edward Wang at The University of California, Berkeley.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)wwmove.c 3.11 (Berkeley) %G%";
* Move a window. Should be unattached.
w
->ww_i
.t
= MAX(w
->ww_w
.t
, 0);
w
->ww_i
.b
= MIN(w
->ww_w
.b
, wwnrow
);
w
->ww_i
.nr
= w
->ww_i
.b
- w
->ww_i
.t
;
w
->ww_i
.l
= MAX(w
->ww_w
.l
, 0);
w
->ww_i
.r
= MIN(w
->ww_w
.r
, wwncol
);
w
->ww_i
.nc
= w
->ww_i
.r
- w
->ww_i
.l
;
for (i
= w
->ww_w
.t
; i
< w
->ww_w
.b
; i
++)
for (i
= w
->ww_w
.t
; i
< w
->ww_w
.b
; i
++)
for (i
= w
->ww_i
.t
; i
< w
->ww_i
.b
; i
++) {
register char *win
= &w
->ww_win
[i
][j
];
register char *smap
= &wwsmap
[i
][j
];
for (; j
< w
->ww_i
.r
; j
++, win
++, smap
++)
if (*win
== 0 && *smap
== w
->ww_index
)
for (i
= w
->ww_b
.t
; i
< w
->ww_b
.b
; i
++)