home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR8 / TDE32.ZIP / LETTERS.H < prev    next >
Text File  |  1993-11-13  |  5KB  |  170 lines

  1. /*
  2.  * Editor:      TDE, the Thomson-Davis Editor
  3.  * Filename:    letters.h
  4.  * Compiled by: Byrial Jensen
  5.  *
  6.  * This file contains various defines of letters etc., collected to
  7.  * to ease making versions for other languages.
  8.  * It is used with changed versions of several of the TDE source files
  9.  */
  10.  
  11. /* Respond letters */
  12.  
  13. #define L_BLOCK         'B'        /* cp. block13 */
  14. #define L_FILE          'F'
  15.  
  16. #define L_ABORT         'A'        /* cp. criterr_screen in criterr.h */
  17. #define L_FAIL          'Q'
  18. #define L_RETRY         'R'
  19.  
  20. /*
  21.  * dos file attributes
  22.  */
  23. #define L_DOS_ARCHIVE   'A'        /* cp. utils14 */
  24. #define L_DOS_SYSTEM    'S'
  25. #define L_DOS_HIDDEN    'H'
  26. #define L_DOS_READ_ONLY 'R'
  27.  
  28. /*
  29.  * unix file attributes
  30.  */
  31. #define L_UNIX_READ     'r'        /* cp. utils14 */
  32. #define L_UNIX_WRITE    'w'
  33. #define L_UNIX_EXECUTE  'x'
  34.  
  35. #define L_PROMPT        'P'        /* cp. find1 */
  36. #define L_NO_PROMPT     'N'
  37.  
  38. #define L_REPLACE       'R'        /* cp. find2 */
  39. #define L_SKIP          'S'
  40. #define L_EXIT          'E'
  41.  
  42. #define L_QUIT          'Q'        /* cp. find3 */
  43. #define L_CONTINUE      'C'
  44.  
  45. #define L_ASCENDING     'A'        /* cp. utils4 */
  46. #define L_DESCENDING    'D'
  47.  
  48. #define L_FORWARD       'F'        /* cp. utils5 */
  49. #define L_BACKWARD      'B'
  50.  
  51. #define L_YES           'Y'        /* in multiple prompts */
  52. #define L_NO            'N'
  53.  
  54. #define L_LEFT          'L'        /* cp. block18 */
  55. #define L_RIGHT         'R'
  56.  
  57. #define L_BEGINNING     'B'        /* cp. diff_prompt3 */
  58. #define L_CURRENT       'C'
  59.  
  60. #define L_OVERWRITE     'O'        /* cp. block7 */
  61. #define L_APPEND        'A'
  62.  
  63.  
  64. #define BLOCK14_LINE_SLOT 14    /* positions for data in messages */
  65. #define BLOCK14_SUM_SLOT  25
  66. #define UTILS13_NO_SLOT   7
  67.  
  68. /*
  69.  * Here comes positions for texts in the dirlist window.
  70.  * All positions are relative to the window frame.
  71.  */
  72. #if defined( __UNIX__ )
  73.  #define DIR1_ROW   1   /* dir1: Directory : */
  74.  #define DIR1_COL   3
  75.  #define DIR4_ROW   2   /* dir4: Selected file : */
  76.  #define DIR4_COL   3
  77.  #define DIR5_ROW   3   /* dir5: File size : */
  78.  #define DIR5_COL   3
  79.  #define DIR6_ROW   3   /* dir6: File count: */
  80.  #define DIR6_COL  44
  81.  #define DIR7_ROW  15   /* dir7: Cursor key move. Enter selects ... */
  82.  #define DIR7_COL   8
  83. #else
  84.  #define DIR4_ROW   1   /* dir4: Selected file : */
  85.  #define DIR4_COL   3
  86.  #define DIR5_ROW   2   /* dir5: File size : */
  87.  #define DIR5_COL   3
  88.  #define DIR6_ROW   2   /* dir6: File count: */
  89.  #define DIR6_COL  44
  90.  #define DIR7_ROW  14   /* dir7: Cursor key move. Enter selects ... */
  91.  #define DIR7_COL   8
  92. #endif
  93.  
  94.  
  95. /*
  96.  * The characters used to draw the dirlist frame
  97.  */
  98. #if defined( __UNIX__ )
  99.  #define HORIZONTAL_LINE   '-'
  100.  #define VERTICAL_LINE     '|'
  101.  #define CORNER_LEFT_UP    '+'
  102.  #define CORNER_RIGHT_UP   '+'
  103.  #define CORNER_LEFT_DOWN  '+'
  104.  #define CORNER_RIGHT_DOWN '+'
  105. #else
  106.  #define HORIZONTAL_LINE   '─'
  107.  #define VERTICAL_LINE     '│'
  108.  #define CORNER_LEFT_UP    '┌'
  109.  #define CORNER_RIGHT_UP   '┐'
  110.  #define CORNER_LEFT_DOWN  '└'
  111.  #define CORNER_RIGHT_DOWN '┘'
  112. #endif
  113.  
  114. /*
  115.  * Some mode letters in bottom screen line
  116.  */
  117. #define MODE_TRAILING   'T'
  118. #define MODE_CONTROL_Z  'Z'
  119. #define MODE_INSERT     'i'
  120. #define MODE_OVERWRITE  'o'
  121.  
  122. #define REG_ALPHANUM    'a'   /* Regular expression predefined macros */
  123. #define REG_WHITESPACE  'b'
  124. #define REG_ALPHA       'c'
  125. #define REG_DECIMAL     'd'
  126. #define REG_HEX         'h'
  127. #define REG_LOWER       'l'
  128. #define REG_UPPER       'u'
  129.  
  130. #define EOF_TEXT        "<=======   End of File   =======>"
  131.  
  132. /*
  133.  * Use this sign for window letters after the alphabet string
  134.  * has been exhausted.
  135.  */
  136. #define LAST_WINDOWLETTER       '+'
  137.  
  138.  
  139. /* Moved from tdestr.h: */
  140. /*
  141.  * characters used in tdeasm.c to display eol and column pointer in ruler
  142.  */
  143. #if defined( __UNIX__ )
  144.  #define EOL_CHAR        0x1c
  145.  #define RULER_PTR       0x21
  146.  #define RULER_FILL      0x2e
  147.  #define RULER_TICK      0x2b
  148.  #define LM_CHAR         0x6c
  149.  #define RM_CHAR_RAG     0x3c
  150.  #define RM_CHAR_JUS     0x7c
  151.  #define PGR_CHAR        0x70
  152.  /*
  153.   * character used two separate vertical screens
  154.   */
  155.  #define VERTICAL_CHAR   0x7c
  156. #else
  157.  #define EOL_CHAR        0x11
  158.  #define RULER_PTR       0x19
  159.  #define RULER_FILL      0x2e
  160.  #define RULER_TICK      0x04
  161.  #define LM_CHAR         0xb4
  162.  #define RM_CHAR_RAG     0x3c
  163.  #define RM_CHAR_JUS     0xc3
  164.  #define PGR_CHAR        0x14
  165.  /*
  166.   * character used two separate vertical screens
  167.   */
  168.  #define VERTICAL_CHAR   0xba
  169. #endif
  170.