home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / LA / LA021.ZIP / QCONFIG.PE2 < prev    next >
Text File  |  1989-11-17  |  18KB  |  554 lines

  1. *  QCONFIG.PE2   -- Configuration file for QEDIT2 to emulate IBM's PE II.
  2. *
  3. *  First Written: 25-FEB-88   Tim Farley
  4. *  Last Revised:  23-AUG-89   Tim Farley    For QEdit 2.08, QEdit OS/2 1.00
  5. *                 07-NOV-89   TF            Misc edits.
  6. *
  7. *  ------------------------------------------------------------------------
  8. *  NOTE:  WE RECOMMEND YOU PRINT THIS FILE OUT AND REFER TO IT AS YOU
  9. *         RUN THE QCONFIG PROGRAM TO CONFIGURE YOUR COPY OF QEDIT.
  10. *
  11. *  Below are other QCONFIG options you should set to closely duplicate
  12. *  the default PE2 configuration.  You will have to select these
  13. *  from the menus within QCONFIG.  For any options not listed here, just
  14. *  hit <RETURN> to keep the default, or configure to your preference:
  15. *
  16. *  (A)dvanced options:
  17. *  -------------------
  18. *  Do you want the return command to split lines in insert mode (Y/N)? : N
  19. *  Do you want the ESCAPE command to invoke the menus (Y/N)? [Y] : Y
  20. *
  21. *
  22. *  (C)olors/screen:
  23. *  ----------------
  24. *  Statusline position: "T" for top, "B" for bottom [T] : B
  25. *  Number of cols to scroll horizontally for screen lt/rt commands : 40
  26. *
  27. *                      COLOR                        MONOCHROME
  28. *                      APPEARANCE                   APPEARANCE
  29. *                      ---------------------------  -------------------------
  30. *  Blocked Text:         79    White on Red          112    Inverse
  31. *  Error msgs:           12    Red on Black           12    Bright
  32. *  Text Area:            31    White on Blue          23    Normal
  33. *  Status Line:          47    White on Green        112    Inverse
  34. ** Cursor Line:          27    Cyan on Blue           31    Bright Normal
  35. ** Messages:             36    Red on Green           47    Bright Normal
  36. ** Hi-lited items:       57    Bright Blue on Cyan    57    Bright Underlined
  37. *  EOF line/indicator:   31    White on Blue          23    Normal
  38. ** Help screen:         112    Black on White        112    Inverse
  39. ** Box borders:          43    Cyan on Green          43    Bright Normal
  40. ** PopUp windows:        47    White on Green         47    Bright Normal
  41. ** Menu items:           46    Yellow on Green        46    Bright Normal
  42. ** Selected Menu items:  78    Yellow on Red         120    Bright Inverse
  43. *
  44. *  (Those marked with ** to the left, don't really have analogues in PE2.
  45. *   The colors for these were chosen to fit pleasantly with PE2's colors).
  46. *
  47. *
  48. *  (G)eneral options:
  49. *  ------------------
  50. *  Do you want the del_ch command to join lines if at EOL (Y/N)? : N
  51. *  Do you want the PQuit, Exit and File commands to return
  52. *       to the "edit file" prompt (Y/N)? : N
  53. *  Default right margin for wordwrap [1..512] : 79
  54. *  Do you want the editor to start in insertmode (Y/N)? : N
  55. *  Do you want the editor to start in autoindent mode (Y/N)? : Y
  56. *  Prompt for filename on open window (Y/N)? : N
  57. *  Close window when a file is quit (Y/N)? : N
  58. *  Display End Of File marker (Y/N)? : Y
  59. *  Insert line blocks ABOVE the cursor line (Y/N)? : N
  60. *
  61. *
  62. *  (T)ab settings:
  63. *  ---------------
  64. *  ...editor to start in Physical Tab Expansion Mode? : Y  (Tabs Expand mode)
  65. *  ...editor to start in Tabs Out mode (Y/N)? : N          (Tabs Out mode)
  66. *
  67. *  ...editor to start in Smart Tabs Mode (Y/N)? : N        (Smart Tabs mode)
  68. *
  69. *  ------------------------------------------------------------------------
  70. *  SEE DEFAULT QCONFIG.DAT FOR FURTHER INSTRUCTIONS ON MODIFYING THIS FILE.
  71. *
  72.  
  73. *
  74. * special keys
  75. *
  76.  
  77. cursorup           CursorUp
  78. cursordown         CursorDown
  79. cursorleft         CursorLeft
  80. cursorright        CursorRight
  81. pgup               PageUp
  82. pgdn               PageDown
  83. home               BegLine
  84. end                EndLine
  85. ins                ToggleInsert
  86. del                DelCh
  87. *
  88. * With Autoindent turned ON, this enter key should work similar to PE2.
  89. * If not, you might try assigning a macro to enter.
  90. *
  91. enter              Return
  92.  
  93. backspace          Backspace
  94. escape             Escape
  95. tab                TabRt
  96.  
  97. *
  98. * function key set
  99. *
  100. * F2, F3 and F7 require the user to hit RETURN to confirm them in the
  101. * default PE2 config.  As configured here, there is no such pause, and it
  102. * would be difficult to insert one.
  103.  
  104. f1                 QuickHelp
  105. f2                 SaveFile
  106. f3                 File
  107. f4                 PQuit
  108. f5                 MacroBegin BegLine DelToEol
  109. f6                 DelToEol
  110. f7                 PrintAll
  111. f8                 NextFile
  112. f9                 AddLine
  113. *
  114. * Note the following assumes that Smart Tabs is turned OFF by default, as
  115. * recommended above.
  116. *
  117. f10                MacroBegin BegLine AddLine ToggleSmartTabs TabRt ToggleSmartTabs
  118.  
  119. * enhanced keyboard only
  120. f11
  121. f12
  122.  
  123. `                  InputCh
  124. ~                  InputCh
  125. /                  InputCh
  126. *
  127. * These three just passed along a printable char in PE2.  We'll let them
  128. * stay at their QEdit defaults, which have no equivalents in PE2.  If you
  129. * want them to be their printable equivalents, change to "InputCh" on each.
  130. *
  131. grey*              Paste
  132. grey+              Copy
  133. grey-              Cut
  134.  
  135. *
  136. * ^Left and ^Right move the cursor 40 columns at a time in PE2.
  137. * 19 columns at a time is the best we can do here, because of length
  138. * limitations.  You could make a QMAC macro to do 40, though.
  139. *
  140. ^cursorleft   MacroBegin CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft CursorLeft
  141. ^cursorright  MacroBegin CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight CursorRight
  142. ^pgup              BegScreen
  143. ^pgdn              EndScreen
  144. ^home              BegFile
  145. ^end               EndFile
  146. *
  147. * We make ^enter match QEdit.  See also ^A for RepeatFind.
  148. *
  149. ^enter             ExecuteScrap
  150. ^backspace         DelLine
  151.  
  152.  
  153. *
  154. * control keys
  155. *
  156.  
  157. *
  158. * Control-A does nothing in PE2.  We make it RepeatFind.  Think "Again".
  159. *
  160. ^a                 RepeatFind
  161. *
  162. * Control-B is "begin word".  We simulate that with a macro.
  163. *
  164. ^b                 MacroBegin CursorRight WordLeft
  165. *
  166. * Note we lose the normal QEdit definitions for the Scrap Buffer operations.
  167. *
  168. *  ^b_a            AppendScrBuff
  169. *  ^b_l            GetScrBuff
  170. *  ^b_s            StoreScrBuff
  171. *
  172. * Control-C is center line in margins.  No such function in QEdit.
  173. * So we make it Dos to complement Shell on Control-D.  Think of ^C
  174. * as "single dos Command".
  175. *
  176. ^c                 Dos
  177. *
  178. * PE2's "DOS" becomes QEdit's "Shell".
  179. *
  180. ^d                 Shell
  181. *
  182. * Control-E is "end word".  We simulate that with a macro, not too successfully.
  183. *
  184. ^e                 MacroBegin WordRight CursorLeft CursorLeft
  185. *
  186. * Control-F is "copy from command" which has no analogue in QEdit.
  187. *
  188. ^f
  189. ^g
  190. ^h
  191. ^i
  192. *
  193. * Control-J is a "join line" with automatic loss of leading blanks, in PE2.
  194. * I can't think of an easy way to do this, so we will leave QEdit's
  195. * Goto a given line number here.
  196. *
  197. ^j                 GotoLine
  198. *
  199. * Control-K is "Edit .Keydefs" in PE2, which is not possible in QEdit.
  200. * (Key definitions are bound in with QCONFIG and not editable in QEdit).
  201. * So, we will leave the "WordStar" ^K combinations active.
  202. *
  203. ^k_b               MarkBlockBegin
  204. ^k_c               CopyBlock
  205. ^k_d               File
  206. ^k_e               EditFile
  207. ^k_f               ChangeFilename
  208. ^k_h               UnmarkBlock
  209. ^k_k               MarkBlockEnd
  210. ^k_n               NextFile
  211. ^k_p               PrevFile
  212. ^k_q               PQuit
  213. ^k_r               ReadBlock
  214. ^k_s               SaveFile
  215. ^k_t               MarkWord
  216. ^k_v               MoveBlock
  217. ^k_w               WriteBlock
  218. ^k_x               File
  219. ^k_y               DeleteBlock
  220. ^k_z               KillFile
  221. ^l                 MakeCtrOfScreen
  222. *
  223. * Control-M is nothing in PE2.
  224. * No equivalent, so we leave QEdit's default.
  225. *
  226. ^m                 MacroRecord
  227. *
  228. * Control-N goes down 64 lines (approx one printed page) in PE2
  229. * We'll fake this with page downs, but it will only work right in a full
  230. * screen window on a 25-line screen.
  231. *
  232. ^n                 MacroBegin PageDown PageDown PageDown LineUp LineUp LineUp LineUp LineUp MakeBotOfScreen
  233. *
  234. * Control-O does nothing in PE2, fortunately enough, so we retain QEdit's
  235. * WordStar like ^O commands.
  236. *
  237. ^o_c               CloseWindow
  238. ^o_l               SetPrintLeftMargin
  239. ^o_n               NextWindow
  240. ^o_o               OneWindow
  241. ^o_p               PrevWindow
  242. ^o_g               GrowWindow
  243. ^o_r               SetRmargin
  244. ^o_s               ShrinkWindow
  245. ^o_h               HorizontalWindow
  246. ^o_w               ToggleWordwrap
  247. ^o_z               ZoomWindow
  248. ^p                 PrintBlock
  249. *
  250. * Control-Q does nothing in PE2, fortunately enough, so we retain QEdit's
  251. * WordStar like ^Q commands.
  252. *
  253. ^q_a               FindReplace
  254. ^q_b               GotoBlockBeg
  255. ^q_c               EndFile
  256. ^q_d               EndLine
  257. ^q_e               BegScreen
  258. ^q_f               Find
  259. ^q_i               ToggleIndent
  260. ^q_k               GotoBlockEnd
  261. ^q_l               UndoCursorLine
  262. ^q_p               PrevPosition
  263. ^q_r               BegFile
  264. ^q_s               BegLine
  265. ^q_t               ToggleSmartTabs
  266. ^q_x               EndScreen
  267. ^q_y               DelToEol
  268. ^r                 MacroBegin DupLine CursorUp
  269. ^s                 HorizontalWindow
  270. *
  271. * Control-T is "copy to command" which has no analogue in QEdit.
  272. * Lets use it to rescue the stranded "scratch buffer" commands.
  273. * Think "scraTch buffer" or "Text buffer" when using these:
  274. *
  275. * "Text append"
  276. ^t_a               AppendScrBuff
  277. *
  278. * "Text load"
  279. ^t_l               GetScrBuff
  280. *
  281. * "Text store"
  282. ^t_s               StoreScrBuff
  283. *
  284. * Control-U shows the unkill buffer in PE2.  We will just make it unkill the
  285. * the last killed piece of text, which is close enough for government work.
  286. * It's actually a bit handier.
  287. *
  288. ^u                 UnKill
  289. *
  290. * Control-V is "next view", which has no analogue in QEdit.
  291. *
  292. ^v
  293. ^w                 NextWindow
  294. ^x
  295. ^y
  296. *
  297. * PE2's ZoomWindow, Control-Z, actually works like QEdit's
  298. * OneWindow--change to single screen from split screen.
  299. *
  300. * QEdit's ZoomWindow is more useful--it TOGGLES between a single screen and
  301. * a split screen mode.
  302. *
  303. * A PE2 purist would change the line below to say OneWindow.
  304. *
  305. ^z                 ZoomWindow
  306.  
  307. *
  308. * Control-F1 through Control-F10 insert the specified number of lines
  309. *
  310. ^f1                MacroBegin AddLine BegLine
  311. ^f2                MacroBegin AddLine AddLine BegLine
  312. ^f3                MacroBegin AddLine AddLine AddLine BegLine
  313. ^f4                MacroBegin AddLine AddLine AddLine AddLine BegLine
  314. ^f5                MacroBegin AddLine AddLine AddLine AddLine AddLine BegLine
  315. ^f6                MacroBegin AddLine AddLine AddLine AddLine AddLine AddLine BegLine
  316. ^f7                MacroBegin AddLine AddLine AddLine AddLine AddLine AddLine AddLine BegLine
  317. ^f8                MacroBegin AddLine AddLine AddLine AddLine AddLine AddLine AddLine AddLine BegLine
  318. ^f9                MacroBegin AddLine AddLine AddLine AddLine AddLine AddLine AddLine AddLine AddLine BegLine
  319. ^f10               MacroBegin AddLine AddLine AddLine AddLine AddLine AddLine AddLine AddLine AddLine AddLine BegLine
  320.  
  321. * enhanced keyboard only
  322. ^f11
  323. ^f12
  324.  
  325. ^prtsc
  326. ^2
  327. ^6
  328. ^[
  329. ^\
  330. ^]
  331. *
  332. * We will leave QEdit's definition of Control-Minus, since PE2 does not have
  333. * it, and does not have anything useful assigned here.
  334. *
  335. ^-                 GetPrev
  336.  
  337. #ins               InputCh
  338. #del               InputCh
  339. #tab               TabLt
  340.  
  341. *
  342. * Shift-F1 and Shift-F2 were a special "page up" and "page down" for the help
  343. * file in PE2.  QEdit's help is a single page, so they are not assigned here.
  344. * So we put Box drawing on #f1 as it is in QEdit by default.
  345. *
  346. #f1                ToggleBoxDraw
  347. *
  348. * Sort is normally #f3 in QEdit
  349. *
  350. #f2                Sort
  351. *
  352. * Wrapping is done on the marked block in PE2.  In QEdit it runs from the
  353. * cursor position to the next blank line, and ignores marked blocks.  So
  354. * we fake PE2's definition in a macro.
  355. *
  356. #f3                MacroBegin GotoBlockEnd AddLine GotoBlockBeg WrapPara DelLine
  357. #f4                UndoCursorLine
  358. *
  359. * Shift-F5 is "confirm change" in PE2, this is emulates it for QEdit.
  360. * Probably better off assigning it to something else entirely, as  QEdit uses
  361. * a much simpler "Yes/No" prompt.
  362. *
  363. #f5                MacroBegin 'Y'
  364. *
  365. * Shift-F6 is erase to beginning of line
  366. *
  367. #f6                MacroBegin CursorRight SplitLine DelLine BegLine
  368. #f7                ShiftLeft
  369. #f8                ShiftRight
  370. *
  371. * Shift-F9 brings a directory of the current dir into an editing buffer
  372. *
  373. #f9                MacroBegin EditFile 'dir' Return KillFile Quit Dos 'dir >dir' Return Return EditFile Return
  374. *
  375. * Shift-F10 does a "point and shoot" file picker on the dir listing generated
  376. * by Shift-F9.
  377. *
  378. #f10               MacroBegin DupLine GotoColumn '10' Return DelToEol EndLine '.' UnKill GotoColumn '13' Return DelToEol UnMarkBlock MarkLine Cut EditFile Paste Return
  379.  
  380. * enhanced keyboard only
  381. #f11
  382. #f12
  383.  
  384. *
  385. * alternate keys
  386. *
  387.  
  388. @a
  389. @b                 MarkColumn
  390. @c                 DropAnchor
  391. @d                 DeleteBlock
  392. *
  393. * Note QEdit moves the cursor just OUTSIDE the end of a character or
  394. * column block, while the [end mark] command in PE2 stays INSIDE the block
  395. *
  396. @e                 GotoBlockEnd
  397. *
  398. * There is no equivalent for Alt-F, Fill Mark, in QEdit.  So we use QEdit's.
  399. *
  400. @f                 MacroBegin MainMenu 'F'
  401. @g
  402. @h
  403. @i
  404. @j                 JoinLine
  405. @k
  406. @l                 MarkLine
  407. @m                 MoveBlock
  408. @n                 MacroBegin AddLine BegLine Literal " "
  409. @o                 CopyOverBlock
  410. *
  411. * The macro that PE2 has here is very close to QEdit's native definition
  412. * of WrapPara.  See also Shift-F3.
  413. *
  414. @p                 WrapPara
  415. *
  416. * QEdit's "Quit" menu
  417. *
  418. @q                 MacroBegin MainMenu 'Q'
  419. *
  420. * Alt-R is redraw screen in PE2.  Since QEdit doesn't need this, we leave it
  421. * at QEdit's read_block
  422. *
  423. @r                 ReadBlock
  424. @s                 SplitLine
  425. @t
  426. @u                 UnmarkBlock
  427. @v
  428. *
  429. * @W attempts to emulate PE2's "mark next word" macro.  See also ^K_T for
  430. * a "mark this word" key.
  431. *
  432. @w                 MacroBegin WordRight AltWordSet UnMarkBlock MarkWord DefaultWordSet GotoBlockEnd DropAnchor GotoBlockBeg
  433. @x                 Literal
  434. @y                 GotoBlockBeg
  435. *
  436. * NOTE:  After copying a block, PE2 leaves the SOURCE marked, QEdit leaves
  437. *        the COPY marked.
  438. *
  439. @z                 CopyBlock
  440.  
  441. *
  442. * Alt-F1 is display memory available in PE2.  QEdit does this continuously in
  443. * the status line.  So we leave QEdit's default definition here.
  444. *
  445. @f1                ToggleBoxType
  446. *
  447. * Alt-F2 is show disk space in PE2.  We fake this by running CHKDSK.
  448. * This would be better replaced by a call to FREE.COM or other quick utility
  449. *
  450. @f2                MacroBegin Dos "CHKDSK" Return
  451. @f3                MacroBegin Dos "CD" Return
  452. *
  453. * Alt-F4, show Hscroll, is a QCONFIG option in QEdit, so we cannot change
  454. * it with a keystroke here.
  455. *
  456. @f4
  457. *
  458. * Alt-F5 through Alt-F8 only "show" the given option in PE2.  Here we
  459. * show it and leave you in a spot to change it.
  460. *
  461. @f5                SetCtabwidth
  462. @f6                SetRmargin
  463. @f7                ToggleTabsExpand
  464. @f8                ToggleTabsOut
  465. *
  466. * This one is definitely a kludge.  We stop at the find options prompt to
  467. * show them to the user.
  468. *
  469. @f9                MacroBegin Find " " Return
  470. *
  471. * Alt-F10 shows the ASCII code of the char under the cursor in PE2.
  472. * No such function in QEdit.  However, you could write a macro here that
  473. * would mark and "Copy" the current character, open up another file with an
  474. * ASCII table in it, do a Find, and Paste the character into the Find prompt,
  475. * thereby placing the cursor on that character in an ASCII chart.
  476. *
  477. * We will carry over QEdit's default of "Show the screen from DOS"
  478. *
  479. @f10               ShowEntryScreen
  480.  
  481. * enhanced keyboard only
  482. @f11
  483. @f12
  484.  
  485. *
  486. * Alt-0 through Alt-9 set various margins and initial indents in PE2.
  487. * We set the margins here, but the initial indents are not possible
  488. *
  489. @0                 MacroBegin SetRMargin "100" Return
  490. @1                 MacroBegin SetRMargin "10" Return
  491. @2                 MacroBegin SetRMargin "20" Return
  492. @3                 MacroBegin SetRMargin "30" Return
  493. @4                 MacroBegin SetRMargin "40" Return
  494. @5                 MacroBegin SetRMargin "50" Return
  495. @6                 MacroBegin SetRMargin "60" Return
  496. @7                 MacroBegin SetRMargin "70" Return
  497. @8                 MacroBegin SetRMargin "80" Return
  498. @9                 MacroBegin SetRMargin "90" Return
  499.  
  500. @-                 WordLeft
  501. @=                 WordRight
  502.  
  503. *
  504. * other enhanced only keys
  505. *
  506. @'
  507. @,
  508. @.
  509. @/
  510. @;
  511. @[
  512. @\
  513. @]
  514. @`
  515. @backspace
  516. @enter
  517. @escape
  518. @grey*
  519. @grey+
  520. @grey-
  521. @grey/
  522. @greycursordown
  523. @greycursorleft
  524. @greycursorright
  525. @greycursorup
  526. @greydel
  527. @greyend
  528. @greyhome
  529. @greyins
  530. @greypgdn
  531. @greypgup
  532. @greyenter
  533. @tab
  534.  
  535. greyenter          Return
  536. ^greyenter         ExecuteScrap
  537. ^centercursor
  538. ^cursordown        LineDown
  539. ^cursorup          LineUp
  540. ^del
  541.  
  542. ^grey*
  543. ^grey+
  544. ^grey-
  545. ^grey/
  546. ^ins
  547. ^tab
  548.  
  549. centercursor
  550.  
  551. *
  552. * EOF: QCONFIG.PE2
  553. *
  554.