* Copyright (c) 1981, 1993, 1994
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)deleteln.c 8.2 (Berkeley) %G%";
* Delete a line from the screen. It leaves (cury, curx) unchanged.
__CTRACE("deleteln: (%0.2o)\n", win
);
temp
= win
->lines
[win
->cury
];
for (y
= win
->cury
; y
< win
->maxy
- 1; y
++) {
win
->lines
[y
]->flags
&= ~__ISPASTEOL
;
win
->lines
[y
+ 1]->flags
&= ~__ISPASTEOL
;
win
->lines
[y
] = win
->lines
[y
+ 1];
(void) memcpy(win
->lines
[y
]->line
,
win
->maxx
* __LDATASIZE
);
__touchline(win
, y
, 0, win
->maxx
- 1, 0);
for(i
= 0; i
< win
->maxx
; i
++) {
__touchline(win
, y
, 0, win
->maxx
- 1, 0);