Atari XL manual Creating and Editing Macros

Page 46

The Last Word 3.0 Reference Manual

<CTRL+ESCAPE> or <SHIFT+ESC> allows you to enter control codes into the editor or into an input dialogue, as <ESCAPE> on its own normally does in BASIC, etc. To get the escape code itself (which appears in LW as a curved downward pointing arrow) in the text, press <CTRL+ESCAPE> or <SHIFT+ESCAPE> twice.

You can also press <SHIFT+CTRL+ESC> to put the Escape character directly into the text.

<CTRL/ SHIFT+ESCAPE> pressed when text is marked will unmark the text, as will <BREAK> or any text typed.

The <ESCAPE> symbol in a macro duplicates <CTRL/SHIFT+ESCAPE> typed at the keyboard. To make a macro put the <ESCAPE> symbol into the editor, include two consecutive <ESCAPE> symbols in the macro.

<ESCAPE> pressed at the keyboard runs macros from the editor.

<ESCAPE> pressed outside the editor aborts the current operation.

In macros, special macro commands and <SHIFT+CTRL> commands are entered as INVERSE <CTRL+KEY> COMMANDS.

The best way to consolidate our understanding of macros is with a couple of examples. Studying the macros supplied on the distribution disk will also help you to understand the LW macro language.

7.5 CREATING AND EDITING MACROS

Because macros tend to contain lots of control codes, it’s best to load in the special

macro editing font before you start. It substitutes special alphabetic characters for the control codes and makes macros much more readable. Load the macro font with:

<Shift+Ctrl+N> then type MACRO and press <Return>

The above will work in either 80 or 40 column modes because there’s a macro font for each mode: MACRO.F80 for 80 column mode and MACRO.FNT for 40 column mode. You may find it much preferable to switch to 40 column mode when editing macros simply because the 40 column font is easier to read and accuracy is important when writing macros.

Switch to 40 column mode with:

<Shift+Ctrl+W>

You may need to go through the procedure to load the 40 column macro font if you haven’t already done so.

All the examples here are illustrated by screen shots of the macros in 40 column mode with the MACRO.FNT character set loaded.

7-46

Image 46
Contents Last Word Contents Configuring LW Configuring LW for Your PrinterMacros DOS Packages and LW LW Command SummaryPrint Formatting Commands Programmers Technical NotesIntroduction Overview of the Last WordStarting LW About the ManualLoading LW from Spartados LW LETTER.TXT Basic OperationEdit Screen SHIFT+CTRL+WLast Word 3.0 Reference Manual SHIFT+CTRL+? Text BanksSaving and Loading Text Filename exists Overwrite / ?Last Word 3.0 Reference Manual Basic Configuration File SelectorLeaving the Program CTRL+XCursor Movement Editor CommandsText Entry Modes Inserting and Deleting Text Delete ord, ine, entence, aragraph?Moving and Copying with Text Blocks Finding and Replacing Text Hange, ll, To nd, kip?FindTH S Searching with WildcardsFind Change to Counting Words Additional Editor FeaturesEdited Text Indicator TabulationText and Document Modes BookmarksCTRL+B Editing Multiple Files User OptionsWildcards Y Handling Large Files LoadREPORT.DOC/CSave AsDREPORT.DOC/A 2DTHESIS.TXT2Disk Menu Disk OperationsDisk Operations from the Editor CTRL+JIew PecOpy Ormat OckVail CTRL+H Additional CommandsSubdirectory Features SHIFT+CTRL+ DownPreviewing Text Editor Print CommandsPrinting with LW Keeping Track of PaginationL20Return Embedded CommandsStage 1 Commands L20r60helloReturnLast Word 3.0 Reference Manual Set the left margin. The default is Left header/footer margin, default 10. This works like Stage 2 Commands International Characters Other Print FeaturesCreating Hanging Indents SHIFT+CTRL+SPACEConfiguring the Print Formatter Printer Drivers Configuring LW for Your PrinterCreating a Printer Driver Control Strings Print TogglesInit International on 27,82,12 International OFF 27,82,0 Code 1,129Style 1,27,45,8 Style 2,27,83,2 Last Word 3.0 Reference Manual Macros Loading MacrosRunning Macros Autorun MacrosSpecial Macro Commands Writing and Editing MacrosField. To actually get input from the user, you Must include Oad Oad AveRint Disabling the Screen from Macros Special CharactersSpecial Macro Font Entering Other Commands from MacrosKeyboard Conventions for Macros Creating and Editing Macros Example Macros Font SetTranspose Characters Last Word 3.0 Reference Manual Configuring LW Configuration Options in the EditorCFG Configuration Files Default Drive Drive D1LW.SYS File Configuration Using a Supported DOSBanks 1,2,3,4 Banked on Configuration Using Other DOS PackagesExtpages Reserve Reserve ExtpagesBanks 5,6,7,8,9,10,11,12 Search PathPath D8D1LW Custom Fonts Using Multipe Text BuffersKeyboard Buffer Keyboard Table Customising the KeyboardKEY n,n Invalid KEY 10,97 Remapping Commands Using MacrosKEY 150,3 3 1200 XL Keys Atari DOS XE DOS Packages and LWMemory Requirements MemloLW files /Mc /Ppath /Q /X DISK-BASED SpartadosSpartados LW TEST.DOC /M% /PD1LWKEY OFF LW.EXE KEY on Spartados X Memory ConfigurationsSpartados X Lwpath Environment Variable SET LWPATH=D8D1\LWLast Word 3.0 Reference Manual Editor Commands LW Command SummaryCommand Function Macro Equivalent Inverse Ctrl W See SET CommandSHIFT+CTRL W Ctrl YSpecial Keys KEY FunctionINV Ctrl Macro CommandsCommand Function INV CTRL+LUP Arrow Print Formatting CommandsCommand Function Default Value Down ArrowLeft Arrow Right ArrowProgrammers Technical Notes Assembly Language ADD-INSMemory Usage Program Design SECDevelopment and Testing WHY LW Came Into Being12-74 12-75 Development Correspondence

XL specifications

The Atari XL series, launched in 1982, represented a significant evolution in home computing, building upon the foundation laid by the Atari 400 and 800 systems. This line of computers included popular models such as the Atari 600XL and 800XL, both of which combined affordability with robust capabilities, making them attractive options for home users, educators, and enthusiasts alike.

One of the standout features of the Atari XL series was its color display capabilities. The systems supported a resolution of 320x192 pixels with a vibrant palette of 128 colors, which enabled rich graphics for games and applications. This was complemented by the system's powerful Antic graphics chip that allowed for advanced video display modes, making the Atari XL series particularly popular for gaming and multimedia applications.

Another key technology driving the Atari XL series was its use of the 6502 processor, which delivered efficient performance and allowed for smooth multitasking. The systems typically came with 64KB of RAM, expandable to 128KB, providing ample memory for running multiple applications simultaneously, a notable feature in comparison to other microcomputers of the time.

The Atari XL series also introduced a new, user-friendly operating system known as Atari DOS. This improved disk management capabilities, making it easier for users to manage files and applications on floppy disks. The systems were equipped with built-in BASIC programming language, enabling users to dive into programming and coding, fostering a generation of hobbyists and developers.

Each model in the Atari XL series came with a distinctive keyboard design, offering both a chic and functional layout. The keyboards were known for their tactile feel, making them suitable for typing and coding over extended periods.

Additionally, the Atari XL computers were compatible with a wide range of peripherals, such as printers, modems, and disk drives, enhancing their versatility. Users could also take advantage of a rich library of software, including educational programs, productivity tools, and an ever-growing selection of games.

The Atari XL series not only boasted solid technology and capabilities but also garnered a devoted community. The systems contributed to a vibrant culture of gaming and computing in the early 1980s, which remains fondly remembered by enthusiasts today. With their combination of innovative technology, user-centric design, and a diverse software library, the Atari XL series played a crucial role in the evolution of home computing.