d097338c192f900ecb002d1b6aad9cc356e43b34
* Copyright (c) 1981 Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)deleteln.c 5.7 (Berkeley) %G%";
* Delete a line from the screen. It leaves (_cury, _curx) unchanged.
__TRACE("deleteln: (%0.2o)\n", win
);
temp
= win
->_y
[win
->_cury
];
for (y
= win
->_cury
; y
< win
->_maxy
- 1; y
++) {
win
->_y
[y
] = win
->_y
[y
+ 1];
bcopy(win
->_y
[y
+ 1], win
->_y
[y
], win
->_maxx
);
touchline(win
, y
, 0, win
->_maxx
- 1);
(void)memset(temp
, ' ', &temp
[win
->_maxx
] - temp
);
touchline(win
, win
->_cury
, 0, win
->_maxx
- 1);