home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ncftp-2.3.0-src.tgz / tar.out / contrib / ncftp / Curses.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  1KB  |  61 lines

  1. /* Curses.h */
  2.  
  3. #ifdef HAVE_LIBNCURSES
  4.     /* The header file that came with ncurses may be named either
  5.      * ncurses.h or curses.h unfortunately.
  6.      */
  7. #    ifdef HAVE_NCURSES_H
  8. #        include <ncurses.h>
  9. #    else
  10. #        include <curses.h>
  11. #    endif
  12. #    define USE_CURSES 2
  13. #else
  14. #    ifdef HAVE_LIBCURSESX
  15.         /* Ultrix has a cursesX library which has functions we need.
  16.          * It also has a regular curses, but we can't use it.
  17.          */
  18. #        include <cursesX.h>
  19. #        define USE_CURSES 3
  20. #    else
  21. #        ifdef HAVE_LIBCURSES
  22. #            include <curses.h>
  23. #            define USE_CURSES 1
  24. #            ifdef __osf__
  25. #                ifndef CURSES_SHELL_BUG
  26. #                    define CURSES_SHELL_BUG 1
  27. #                endif
  28. #            endif
  29. #        endif
  30. #    endif
  31. #endif    /* HAVE_LIBNCURSES */
  32.  
  33. #ifndef CURSES_SHELL_BUG
  34. #    define CURSES_SHELL_BUG 0
  35. #endif
  36.  
  37. #ifndef HAVE_GETMAXYX
  38. #    ifdef HAVE__MAXX
  39. #        ifndef getmaxyx
  40. #            define getmaxyx(w,y,x) y = w->_maxy;  x = w->_maxx;
  41. #        endif
  42. #        ifndef getbegyx
  43. #            define getbegyx(w,y,x) y = w->_begy;  x = w->_begx;
  44. #        endif
  45. #    endif
  46. #    ifdef HAVE_MAXX
  47. #        ifndef getmaxyx
  48. #            define getmaxyx(w,y,x) y = w->maxy;  x = w->maxx;
  49. #        endif
  50. #        ifndef getbegyx
  51. #            define getbegyx(w,y,x) y = w->begy;  x = w->begx;
  52. #        endif
  53. #    endif
  54. #endif
  55.  
  56. #ifndef HAVE_BEEP
  57. #    define BEEP(a)    beep()
  58. #else
  59. #    define BEEP(a)
  60. #endif
  61.