home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_50 / PVIC.ZIP / LOCDEFS.H < prev    next >
Text File  |  1993-04-21  |  3KB  |  71 lines

  1. /* Terminal size. */
  2. #define DEFAULT_TERMCAP_LINES            24
  3. #define DEFAULT_TERMCAP_COLUMNS            80
  4.  
  5. /* Default termcap strings. */
  6. #define    DEFAULT_TERMCAP_CLR_EOL            "\033[K"    
  7. #define    DEFAULT_TERMCAP_CLEAR_SCREEN        "\033[2J"
  8. #define    DEFAULT_TERMCAP_SAVE_CURSOR        "\033[s"
  9. #define    DEFAULT_TERMCAP_RESTORE_CURSOR        "\033[u"
  10. #define    DEFAULT_TERMCAP_CURSOR_INVISIBLE    ""
  11. #define    DEFAULT_TERMCAP_CURSOR_VISIBLE        ""    
  12. #define    DEFAULT_TERMCAP_CURSOR_ADDRESS        "\033[%i%d;%dH"
  13. #define DEFAULT_TERMCAP_INIT_TERMINAL        ""
  14. #define DEFAULT_TERMCAP_DEINIT_TERMINAL        ""
  15. #define DEFAULT_TERMCAP_BELL            "\007"   
  16.  
  17. #define DEFAULT_TERMCAP_KEY_F1            ""   
  18. #define DEFAULT_TERMCAP_KEY_F2            ""   
  19. #define DEFAULT_TERMCAP_KEY_IC            ""        /* Insert. */
  20. #define DEFAULT_TERMCAP_KEY_DC            "\177"        /* Delete. */
  21. #define DEFAULT_TERMCAP_KEY_HOME         ""
  22. #define DEFAULT_TERMCAP_KEY_EOL            ""    
  23. #define DEFAULT_TERMCAP_KEY_PPAGE        ""              /* PgUp. */
  24. #define DEFAULT_TERMCAP_KEY_NPAGE        ""          /* PgDn. */
  25. #define DEFAULT_TERMCAP_KEY_UP            "\033[A"
  26. #define DEFAULT_TERMCAP_KEY_DOWN         "\033[B"
  27. #define DEFAULT_TERMCAP_KEY_LEFT        "\033[D"
  28. #define DEFAULT_TERMCAP_KEY_RIGHT        "\033[C"
  29. #define DEFAULT_TERMCAP_KEY_BACKSPACE         "\010"    
  30.  
  31. /* Strings for keys. Even if a termcap entry is available, these key
  32. strings are recognised. */
  33. #define ALT_TERMCAP_KEY_F1            "\200\073"   
  34. #define ALT_TERMCAP_KEY_F2            "\200\074"   
  35. #define ALT_TERMCAP_KEY_IC            "\200\122"    /* Insert. */
  36. #define ALT_TERMCAP_KEY_DC            "\200\123"    /* Delete. */
  37. #define ALT_TERMCAP_KEY_HOME            "\200\107"
  38. #define ALT_TERMCAP_KEY_EOL            "\200\117"    
  39. #define ALT_TERMCAP_KEY_PPAGE            "\200\111"      /* PgUp. */
  40. #define ALT_TERMCAP_KEY_NPAGE            "\200\121"    /* PgDn. */
  41. #define ALT_TERMCAP_KEY_UP            "\200\110"
  42. #define ALT_TERMCAP_KEY_DOWN             "\200\120"
  43. #define ALT_TERMCAP_KEY_LEFT            "\200\113"
  44. #define ALT_TERMCAP_KEY_RIGHT            "\200\115"
  45. #define ALT_TERMCAP_KEY_BACKSPACE         "\010"    
  46.  
  47. /* Local definitions of control characters. */
  48. #define LOCAL_BACKSPACE_KEY            "\010"
  49. #define LOCAL_TAB_KEY                "\011"
  50. #define LOCAL_RETURN_KEY            "\015"
  51. #define LOCAL_ESC_KEY                "\033"
  52. #define LOCAL_DEL_KEY                "\177"
  53.  
  54. /* Local non-portable strings. */
  55. #define LOCAL_SHELL                "command.com"
  56. #define LOCAL_TERMCAP_FILE            "c:\\etc\\termcap"
  57. #define LOCAL_TERM_ENVIRONMENT_VAR        "TERM"
  58. #define LOCAL_TERMCAP_ENVIRONMENT_VAR        "TERMCAP"
  59.  
  60. /* Local non-portable functions. */
  61. int local_get_character();
  62. int local_is_input_pending();
  63. void local_init();
  64. void local_deinit();
  65. void local_init_terminal_io();
  66. void local_deinit_terminal_io();
  67. void local_control_c_handler();
  68. void local_reset_control_c_pressed();
  69. int local_control_c_pressed();
  70.  
  71.