home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / linux / old-src / ncurses-1.8.5 / attr.c < prev    next >
C/C++ Source or Header  |  1993-11-27  |  757b  |  35 lines

  1.  
  2. #include <ncurses.h>
  3. void main()
  4. {
  5.     initscr();
  6.     meta(stdscr, TRUE);
  7.     attron(A_STANDOUT);
  8.     mvaddstr(2,8,"this is STANDOUT mode");
  9.     attroff(A_STANDOUT);
  10.     attron(A_REVERSE);
  11.     mvaddstr(4,8,"this is REVERSE mode");
  12.     attroff(A_REVERSE);
  13.     attron(A_BOLD);
  14.     mvaddstr(6,8,"this is BOLD mode");
  15.     attroff(A_BOLD);
  16.     attron(A_UNDERLINE);
  17.     mvaddstr(8,8,"this is UNDERLINE mode");
  18.     attroff(A_UNDERLINE);
  19.     attron(A_DIM);
  20.     mvaddstr(10,8,"this is DIM mode");
  21.     attroff(A_DIM);
  22.     mvaddstr(12,8,"this is NORMAL mode");
  23.     attron(A_BLINK);
  24.     mvaddstr(14,8,"this is BLINK mode");
  25.     attroff(A_BLINK);
  26.     attron(A_BOLD|A_BLINK|A_UNDERLINE);
  27.     mvaddstr(16,8,"this is BOLD UNDERLINE BLINK mode");
  28.     attrset(A_NORMAL);
  29.     mvaddstr(18,8,"this is NORMAL mode");
  30.     refresh();
  31.     getch();
  32.     endwin();
  33. }
  34.  
  35.