home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / pcomm / part02 / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-17  |  1.0 KB  |  35 lines

  1. /*
  2.  * Definitions to support the home-grown curses functions and to make the
  3.  * old curses routines happy
  4.  */
  5.  
  6. #define NOPROMOTE
  7.  
  8. #define mvwattrstr(w,y,x,a,s)    (wmove(w,y,x)==ERR?ERR:wattrstr(w,a,s))
  9. #define mvwattrch(w,y,x,a,c)    (wmove(w,y,x)==ERR?ERR:wattrch(w,a,c))
  10. #define mvwattrnum(w,y,x,a,n)    (wmove(w,y,x)==ERR?ERR:wattrnum(w,a,n))
  11. #define mvattrstr(y,x,a,s)    (wmove(stdscr,y,x)==ERR?ERR:wattrstr(stdscr,a,s))
  12. #define mvattrch(y,x,a,c)    (wmove(stdscr,y,x)==ERR?ERR:wattrch(stdscr,a,c))
  13. #define mvattrnum(y,x,a,n)    (wmove(stdscr,y,x)==ERR?ERR:wattrnum(stdscr,a,n))
  14. #define attrstr(a,s)        wattrstr(stdscr,a,s)
  15. #define attrch(a,c)        wattrch(stdscr,a,c)
  16. #define attrnum(a,n)        wattrnum(stdscr,a,n)
  17.  
  18. #ifdef OLDCURSES
  19. #ifdef NOPROMOTE
  20. #define A_BOLD        0
  21. #define A_BLINK        0
  22. #define A_REVERSE    1
  23. #define A_DIM        0
  24. #define A_STANDOUT    1
  25. #define A_UNDERLINE    0
  26. #else /* NOPROMOTE */
  27. #define A_BOLD        1
  28. #define A_BLINK        1
  29. #define A_REVERSE    1
  30. #define A_DIM        1
  31. #define A_STANDOUT    1
  32. #define A_UNDERLINE    1
  33. #endif /* NOPROMOTE */
  34. #endif /* OLDCURSES */
  35.