home *** CD-ROM | disk | FTP | other *** search
- R*
- R* S U B R O U T I N E M A C R O S
- R*
- R* "Header" macro - displays colored header
- R* Enter: R9 = text to display, Q21 = attribute to use
- R*
- RI(H)\
- .wt>1[YWI] R* Remove any windows
- Q27YEA YEC R* Clear window
- .u9+10XS(0) R* Q0 = total width of header
- (.wc-q0)/2XS(1) R* Q1 = # spaces to center header
-
- YEN Q1YEB R* New line and spaces to center
- Q21YEA R* Switch attribute
- "╔:YD R* Box-corner
- q0-2["═:YD] "╗:YD R* Box-top and box-corner
-
- Q27YEA R* Restore attribute
- YEN Q1YEB R* New line and spaces to center
- Q21YEA R* Switch attribute
- "║:YD R* Box-side
- 4YEB R* 4 spaces before header
- RD(9) R* Actual header
- 4YEB R* 4 spaces after header
- "║:YD R* Box-side
-
- Q27YEA R* Restore attribute
- YEN Q1YEB R* New line and spaces to center
- Q21YEA R* Switch attribute
- "╚:YD R* Box-corner
- q0-2["═:YD] "╝:YD R* Box-top and box-corner
-
- Q27YEA R* Restore attribute
- YEN R* End current line
- \
- R*
- R* "Key" macro - pause for user to press any key
- R*
- RI(K)\
- q23YEA YT/ --- PRESS ANY KEY TO CONTINUE --- / q27YEA
- XK(0)//
- \
- R*
- R* "List" macro - list data files one page at a time
- R* Enter: R9 = header to display
- R* R8 = filename of data file
- R*
- RI(L)\
- EE(7) EZY R* Switch to temp buffer and empty it
- ER |R8 R* Open desired file
- 0A R* Read it all in
-
- M(H) R* Display header using R9
-
- [ R* Start REPEAT-UNTIL loop
-
- 6YEV 0YEH R* Move cursor below header
- YES R* Erase to to end of window
-
- .pXS(0) R* Save current edit position
- F// R* Search for <CTRL-S> which ends this screen
- q0,.p-1T R* Display one screen of text (move back to Q0)
- F// R* Find same <CTRL-S> again
-
- M(K) R* Pause()
-
- .eofJL R* REPEAT-UNTIL end of file reached
- ]
-
- EE(@) R* Switch back to main buffer
- \
- R*
- R* "Menu" macro - displays and prompts user with menu
- R* Enter: R8 = Multi-line menu Q8 = attribute for menu-bar
- R* R9 = header to display
- R* Q12 = initial menu item to highlight (-1)
- R* Return: Q12 = user's selection number
- R*
- R* Usage: Q1 = # spaces to center menu
- R* Q3 = Count of # lines in menu
- R* Q4,Q5 = Save for cursor position
- R*
- RI(M)\
- M(H) R* Display header using R9
- R* Return: Q1 = # spaces to center header
- YEN R* Display blank line
- 1XA(12) R* Skip to next menu-line
- EE(8) R* Switch to editing menu-text
- Z R* Goto last line+1
- .ln-1XS(3) R* Q3 = # lines in menu
- B
-
- q3[ R* Loop for all lines in menu
- q1YEH R* Horizontally position on line
- T L R* Display line and goto next line
- ]
-
- YEN R* Display blank line
- Q1YEH R* Horizontally position on line
- Q23YEA YT/Select with <SPACE BAR>; then press <Enter> / q27YEA
- .wxXS(5) .wyXS(6) R* Save cursor position
-
- [
-
- B q12-1L R* Position to text for menu-bar
- q12+5YEV q1YEH R* Position cursor in window
- q8YEA R* Highlight attribute
- T R* Display text
- Q27YEA R* Restore attribute
-
- !KEY!
-
- q5YEH q6YEV R* Restore cursor position
- XK(0)// R* Wait for keyboard input
-
- (q0 = 13)[ JM ] R* If <Enter>
-
- (q0 <> 32) & (q0 <> 208) & (q0 <> 200) [ R* If invalid key
- JP/KEY/ R* Get next key
- ][ R* ELSE - <SPACE> or <Up> <Down>
- B q12-1L R* Position to text for menu-bar
- q12+5YEV q1YEH R* Position cursor in window
- T R* Display text in normal attribute
- (q0 = 200) [
- -XA(12) (q12 < 1) [q3XS(12)]
- ][
- XA(12) (q12 > q3) [1XS(12)]
- ]
- ]
- ]
- \
- R*
- R* Macro to display the next screen of instructions during Command
- R* Mode demos.
- R* Enter: Instruction text loaded into edit buffer 1.
- R*
- RI(N)\
- EE(1) R* Switch to edit buffer 1
- @F/|L/ R* Search for next ^S
- (.es) [ EE(@) RJ(Z) ] R* Return to main menu when end-of-file reached
- -100K B R* Delete text preceding ^S
- -V R* Display next screen
- EE(@)
- \
- R*
- R* Macro to display signon message
- R*
- RI(S)\
- RI(9)/Welcome to the VEDIT Family Demonstration/
- M(H) R* Display header
-
- EE(@)
- YT`
- Welcome to the demonstration/tutorial of the VEDIT Family of text editors.
-
- The VEDIT Family of editors includes VEDIT Jr., VEDIT and VEDIT PLUS. Since
- these editors are upwards compatible, this demo is applicable to all three.
-
- The demo is divided into 14 topics that you can select from a main menu. The
- features common to all three editors are covered first. Then the additional
- features in VEDIT (primarily multi-file editing and windowing) are covered.
- Last, the macro programming language capabilities of VEDIT PLUS are
- introduced.
-
- Unlike other demonstrations which are just "slide shows", in this demo you
- are running a fully functional version of VEDIT PLUS. When you are done with
- the demo, you can use VDEMO.EXE to edit your own files. (The only restriction
- is that VDEMO won't readily write large files back to disk.) The READ-ME.BAT
- file describes the practical uses of VDEMO.EXE in more detail.
-
- ENJOY!
- `
- M(K) R* Wait for <Enter>
- 5YEV 0YEH YES R* Position cursor, clear rest of screen
-
- YT`
- VEDIT Jr. has many features to make editing simple and productive:`
-
- q22YEA R* White on red
- YT`
- * Intuitive full screen editing; edit text and binary files of any size
- * Pull-down menus with "hot keys", on-line help and mouse support
- * Block operations by character, line, file or column; block indent/undent
- * Completely re-configurable keyboard layout; unlimited keystroke macros
- * Multi-level UNDO (up to 1000 levels) lets you quickly recover from mistakes
- * Word processing features simplify editing of documentation, reports, etc.
- * Special features for program development (C, Assembler, PASCAL, PL/I etc.)
- * Run DOS commands and other programs from within the editor
- `
- q27YEA
- YT`
- VEDIT has all the features above plus:`
- q22YEA
- YT`
- ==> Simultaneously edit multiple files with or without windows
- ==> Integrated Compile/Link/Debug/Make support with automatic error tracking
- `
- q27YEA
- YT`
- VEDIT PLUS adds a powerful text oriented "programming language":`
- q22YEA
- YT`
- ==> Eliminates repetitive editing tasks; create your own editing functions
- ==> A complete application language for filters, translators and much more
- ==> This demonstration is entirely written in the VEDIT PLUS macro language!
- `
- q27YEA
-
- M(K)
- 5YEV 0YEH YES
-
- YT`
- This demonstration is quite in-depth and also serves as a tutorial for new
- users. It is best to run through the menu from top to bottom. A quick
- overview will take about 15 minutes while a detailed tutorial will take about
- an hour. The topic marked as "Tutorial" is the most in-depth.
-
- If you have a mouse, the mouse cursor will soon appear in the middle of the
- screen. To keep it out of the way, move it to the top right corner. The
- tutorial introduces mouse operation.
-
- REMEMBER: One window always gives explanations and directions. The last line
- tells you how to continue to the next "lesson". You can usually
- press the <ESC> key repeatedly to quickly run through the demo.
-
- Or you can press <ALT-F8> to return to the main menu.
-
- IBM PC: Use <Up Arrow> and <Down Arrow> keys to select from the main menu.
-
- `
-
- M(K)
- \
-