1*57718be8SEnji Cooperinclude start 2*57718be8SEnji Cooper# no attributes, no color 3*57718be8SEnji Coopercall3 OK 0 0 attr_get 4*57718be8SEnji Cooper# set reverse and bold 5*57718be8SEnji Coopercall OK attr_set ($BOLD | $REVERSE) 2 6*57718be8SEnji Cooper# returned attributes includes color information 7*57718be8SEnji Coopercall3 OK ($ACS_IS_WACS | $BOLD | $REVERSE) 2 attr_get 8*57718be8SEnji Cooper# turn off reverse 9*57718be8SEnji Coopercall OK attr_off $REVERSE 10*57718be8SEnji Coopercall3 OK ($ACS_IS_WACS | $BOLD) 2 attr_get 11*57718be8SEnji Cooper# turn on standout 12*57718be8SEnji Coopercall OK attr_on $STANDOUT 13*57718be8SEnji Coopercall3 OK ($ACS_IS_WACS | $BOLD | $STANDOUT) 2 attr_get 14*57718be8SEnji Cooper# turn on blink 15*57718be8SEnji Coopercall OK attron $BLINK 16*57718be8SEnji Coopercall3 OK ($ACS_IS_WACS | $BOLD | $STANDOUT | $BLINK) 2 attr_get 17*57718be8SEnji Cooper# turn off bold 18*57718be8SEnji Coopercall OK attroff $BOLD 19*57718be8SEnji Coopercall3 OK ($ACS_IS_WACS | $STANDOUT | $BLINK) 2 attr_get 20*57718be8SEnji Cooper# print out something to check our attributes are there, standout and blink 21*57718be8SEnji Coopercall OK printw "%s" "hello" 22*57718be8SEnji Coopercall OK refresh 23*57718be8SEnji Coopercompare attributes.chk 24