home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Heaven Sunny 2 / APPARE2.BIN / oh_towns / dic / src / scrn.h < prev    next >
C/C++ Source or Header  |  1995-06-20  |  2KB  |  64 lines

  1.  
  2. #ifdef    FMRESC
  3. #define    GETCH()        getch()
  4. #define    INKEY()        getch()
  5. #define    PUTC(c)        putchar(c)
  6. #define    LOCATE(x,y)    printf("\033[%d;%dH", (y) + 1, (x) + 1)
  7. #define    ERALINE()    fputs("\033[0K", stdout)
  8. #define    CLS()        
  9. #define    REVCOL()    fputs("\033[7m", stdout)
  10. #define    STDCOL()    fputs("\033[0m", stdout)
  11. #define    CUROFF()    fputs("\033[1v", stdout)
  12. #define    CURON()        fputs("\033[0v", stdout)
  13. #define    FLUSH()        fflush(stdout);
  14. #define    REFRESH()
  15. #define    BOLD_ON()    fputs("\033[32m", stdout)
  16. #define    BOLD_OFF()    fputs("\033[37m", stdout)
  17. #define    ITALIC_ON()    fputs("\033[36m", stdout)
  18. #define    ITALIC_OFF()    fputs("\033[37m", stdout)
  19. #define    FORSCROOL()    fputs("\x0B\033R", stdout)
  20. #define    BACKSCROOL()    fputs("\x0B\033E", stdout)
  21. #endif
  22.  
  23. #ifdef    ANSIESC
  24. #define    GETCH()        getch()
  25. #define    INKEY()        getch()
  26. #define    PUTC(c)        putchar(c)
  27. #define    LOCATE(x,y)    printf("\033[%d;%dH", (y) + 1, (x) + 1)
  28. #define    ERALINE()    fputs("\033[0K", stdout)
  29. #define    CLS()        
  30. #define    REVCOL()    fputs("\033[7m", stdout)
  31. #define    STDCOL()    fputs("\033[0m", stdout)
  32. #define    CUROFF()    
  33. #define    CURON()        
  34. #define    FLUSH()        fflush(stdout);
  35. #define    REFRESH()
  36. #define    BOLD_ON()    fputs("\033[32m", stdout)
  37. #define    BOLD_OFF()    fputs("\033[37m", stdout)
  38. #define    ITALIC_ON()    fputs("\033[36m", stdout)
  39. #define    ITALIC_OFF()    fputs("\033[37m", stdout)
  40. #define    FORSCROOL()    fputs("\033[1;1H\033[1M", stdout)
  41. #define    BACKSCROOL()    fputs("\033[1;1H\033[1L", stdout)
  42. #endif
  43.  
  44. #ifdef    CURSES
  45. #define    GETCH()        getch()
  46. #define    INKEY()        getchar()
  47. #define    PUTC(c)        addch(c)
  48. #define    LOCATE(x,y)    move(y,x)
  49. #define    ERALINE()    clrtoeol()
  50. #define    CLS()        erase()
  51. #define    REVCOL()    standout()
  52. #define    STDCOL()    standend()
  53. #define    CUROFF()    
  54. #define    CURON()        
  55. #define    FLUSH()        refresh()
  56. #define    REFRESH()    wrefresh(curscr)
  57. #define    BOLD_ON()
  58. #define    BOLD_OFF()
  59. #define    ITALIC_ON()
  60. #define    ITALIC_OFF()
  61. #define    FORSCROOL()    scroll(stdscr)
  62. #define    BACKSCROOL()    move(0,0),insertln()
  63. #endif
  64.