2 * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
21 sccsid
[] = "@(#)clrtoeol.c 1.6 88/02/08 SMI"; /* from UCB 5.1 85/06/07 */
28 * This routine clears up to the end of line
32 wclrtoeol(WINDOW
*win
)
41 end
= &win
->_y
[y
][win
->_maxx
];
43 maxx
= &win
->_y
[y
][x
];
44 for (sp
= maxx
; sp
< end
; sp
++)
47 if (minx
== _NOCHANGE
)
48 minx
= sp
- win
->_y
[y
];
52 * update firstch and lastch for the line
54 (void) touchline(win
, y
, win
->_curx
, win
->_maxx
- 1);
57 fprintf(outf
, "CLRTOEOL: minx = %d, maxx = %d, firstch = %d,"
58 " lastch = %d\n", minx
, maxx
- win
->_y
[y
], win
->_firstch
[y
],