* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)deleteln.c 5.1 (Berkeley) %G%";
* This routine deletes a line from the screen. It leaves
* (_cury,_curx) unchanged.
fprintf(outf
, "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);
for (end
= &temp
[win
->_maxx
]; temp
< end
; )
touchline(win
, win
->_cury
, 0, win
->_maxx
- 1);