xref: /freebsd/contrib/netbsd-tests/lib/libcurses/tests/copywin (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1include start
2include window_create
3call win2 newwin 7 9 10 14
4check win2 NON_NULL
5call OK wrefresh $win2
6compare copywin1.chk
7call OK mvwprintw $win1 0 0 "%s" "testin"
8call OK mvwprintw $win1 1 0 "%s" "gtesti"
9call OK mvwprintw $win1 2 0 "%s" "ngtest"
10call OK mvwprintw $win1 3 0 "%s" "ingtes"
11call OK mvwprintw $win1 4 0 "%s" "tingte"
12call OK mvwprintw $win1 5 0 "%s" "stingt"
13call OK wrefresh $win1
14compare copywin2.chk
15call OK copywin $win1 $win2 0 0 1 1 7 7 0
16call OK wrefresh $win2
17compare copywin3.chk
18call OK wclear $win1
19call OK wclear $win2
20call OK wrefresh $win1
21call OK wrefresh $win2
22compare copywin4.chk
23call OK mvwprintw $win2 0 0 "%s" "testingte"
24call OK mvwprintw $win2 1 0 "%s" "stingtest"
25call OK mvwprintw $win2 2 0 "%s" "ingtestin"
26call OK mvwprintw $win2 3 0 "%s" "gtestingt"
27call OK mvwprintw $win2 4 0 "%s" "estingtes"
28call OK mvwprintw $win2 5 0 "%s" "tingtesti"
29call OK wrefresh $win2
30compare copywin5.chk
31call OK copywin $win2 $win1 0 0 0 0 7 9 0
32call OK wrefresh $win1
33compare copywin6.chk
34call OK wclear $win1
35call OK wclear $win2
36call OK wrefresh $win1
37call OK wrefresh $win2
38compare copywin7.chk
39call OK mvwprintw $win1 0 0 "%s" "t s i "
40call OK mvwprintw $win1 1 0 "%s" "g e t "
41call OK mvwprintw $win1 2 0 "%s" "n t s "
42call OK mvwprintw $win1 3 0 "%s" " n t s"
43call OK mvwprintw $win1 4 0 "%s" "t n t "
44call OK mvwprintw $win1 5 0 "%s" " t n t"
45call OK wrefresh $win1
46compare copywin8.chk
47call OK mvwprintw $win2 0 0 "%s" " e t n"
48call OK mvwprintw $win2 1 0 "%s" " t s i"
49call OK mvwprintw $win2 2 0 "%s" " g e t"
50call OK mvwprintw $win2 3 0 "%s" "i g e "
51call OK mvwprintw $win2 4 0 "%s" " i g e"
52call OK mvwprintw $win2 5 0 "%s" "s i g "
53call OK wrefresh $win2
54compare copywin9.chk
55call OK copywin $win1 $win2 0 0 0 0 6 6 0
56call OK wrefresh $win2
57compare copywin10.chk
58call OK wclear $win1
59call OK wclear $win2
60call OK wrefresh $win1
61call OK wrefresh $win2
62compare copywin11.chk
63call OK mvwprintw $win1 0 0 "%s" "t s i "
64call OK mvwprintw $win1 1 0 "%s" "g e t "
65call OK mvwprintw $win1 2 0 "%s" "n t s "
66call OK mvwprintw $win1 3 0 "%s" " n t s"
67call OK mvwprintw $win1 4 0 "%s" "t n t "
68call OK mvwprintw $win1 5 0 "%s" " t n t"
69call OK wrefresh $win1
70compare copywin12.chk
71call OK mvwprintw $win2 0 0 "%s" " e t n"
72call OK mvwprintw $win2 1 0 "%s" " t s i"
73call OK mvwprintw $win2 2 0 "%s" " g e t"
74call OK mvwprintw $win2 3 0 "%s" "i g e "
75call OK mvwprintw $win2 4 0 "%s" " i g e"
76call OK mvwprintw $win2 5 0 "%s" "s i g "
77call OK wrefresh $win2
78compare copywin13.chk
79call OK copywin $win1 $win2 0 0 0 0 6 6 1
80call OK wrefresh $win2
81compare copywin14.chk
82