]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/netbsd-tests/lib/libcurses/tests/attributes
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / netbsd-tests / lib / libcurses / tests / attributes
1 include start
2 # no attributes, no color
3 call3 OK 0 0 attr_get
4 # set reverse and bold
5 call OK attr_set ($BOLD | $REVERSE) 2
6 # returned attributes includes color information
7 call3 OK ($ACS_IS_WACS | $BOLD | $REVERSE) 2 attr_get
8 # turn off reverse
9 call OK attr_off $REVERSE
10 call3 OK ($ACS_IS_WACS | $BOLD) 2 attr_get
11 # turn on standout
12 call OK attr_on $STANDOUT
13 call3 OK ($ACS_IS_WACS | $BOLD | $STANDOUT) 2 attr_get
14 # turn on blink
15 call OK attron $BLINK
16 call3 OK ($ACS_IS_WACS | $BOLD | $STANDOUT | $BLINK) 2 attr_get
17 # turn off bold
18 call OK attroff $BOLD
19 call3 OK ($ACS_IS_WACS | $STANDOUT | $BLINK) 2 attr_get
20 # print out something to check our attributes are there, standout and blink
21 call OK printw "%s" "hello"
22 call OK refresh
23 compare attributes.chk