home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / pvic_10a.lzh / SRCE / locdefs.h < prev    next >
Text File  |  1998-06-09  |  3KB  |  76 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            "\033OP"   
  18. #define DEFAULT_TERMCAP_KEY_F2            "\033OQ"   
  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            ""   
  34. #define ALT_TERMCAP_KEY_F2            ""   
  35. #define ALT_TERMCAP_KEY_IC            ""            /* Insert. */
  36. #define ALT_TERMCAP_KEY_DC            ""            /* Delete. */
  37. #define ALT_TERMCAP_KEY_HOME            ""
  38. #define ALT_TERMCAP_KEY_EOL            ""    
  39. #define ALT_TERMCAP_KEY_PPAGE            ""              /* PgUp. */
  40. #define ALT_TERMCAP_KEY_NPAGE            ""            /* PgDn. */
  41. #define ALT_TERMCAP_KEY_UP            ""
  42. #define ALT_TERMCAP_KEY_DOWN             ""
  43. #define ALT_TERMCAP_KEY_LEFT            ""
  44. #define ALT_TERMCAP_KEY_RIGHT            ""
  45. #define ALT_TERMCAP_KEY_BACKSPACE         ""    
  46.  
  47. /* Local definitions of control characters. */
  48. #define LOCAL_BACKSPACE_KEY            "\010"
  49. #define LOCAL_TAB_KEY                "\020"
  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                     "shell"
  56. #define LOCAL_TERMCAP_FILE              "/dd/sys/termcap"
  57. #define LOCAL_TERM_ENVIRONMENT_VAR      "TERM"
  58. #define LOCAL_TERMCAP_ENVIRONMENT_VAR   "TERMCAP"
  59. #define LOCAL_SHELL_ENVIRONMENT_VAR        "SHELL"
  60. #define LOCAL_INI_FILE                  "/.exrc"  /* path sep. + filename */
  61. #define LOCAL_HOME_ENVIRONMENT_VAR      "HOME"
  62.  
  63. /* Local non-portable functions. */
  64. int local_get_character();
  65. int local_is_input_pending();
  66. void local_init();
  67. void local_deinit();
  68. void local_init_terminal_io();
  69. void local_deinit_terminal_io();
  70. void local_control_c_handler();
  71. void local_reset_control_c_pressed();
  72. int local_control_c_pressed();
  73. int local_system();
  74. int local_ini_file();
  75.  
  76.