aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/tedit/display/curses/initscr.x
blob: caa6b9fb8147236ff1a70462c27509c59abc2987 (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
include	"../curses.h"
include	"window.h"

# INITSCR -- Initialize curses routines

procedure initscr ()

#--
include "window.com"

int	stdscr
string	cmdlist	 CMDSTR

int	newwin()

begin
	# Initialize global variables

	saved = NO
	echoed = YES
	call aclri (warray, MAXWIN)

	# Initialize terminal

	call ps_begin
	call k_begin (cmdlist)

	# Create standard screen (STDSCR)

	stdscr = newwin (GIANT, GIANT, 1, 1)
	saved = YES

end