aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/tedit/display/curses/erase.x
blob: 86b529a86b5529029dd09e54a69e1f822a012e54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include "../curses.h"
include "window.h"

# ERASE -- Erase window
#
# B.Simon	28-Sep-90	Original

procedure erase ()

#--

begin
	call werase (STDSCR)
end

procedure werase (win)

int	win		# i: Window descriptor
#--
include "window.com"

int	blank
pointer	pwin

data	blank	/ ' ' /

begin
	pwin = warray[win]
	call ps_fill (WIN_RECT(pwin), blank, WIN_ATRIB(pwin))

	if (WIN_LEAVE(pwin) == NO) {
	    call ps_setcur (WIN_TOP(pwin), WIN_LEFT(pwin))
	    WIN_CURROW(pwin) = 1
	    WIN_CURCOL(pwin) = 1
	}

end