.f3                              - # -              Chapter 5 - Command Keys
.po5
.rm70
.mt5
.mb5
.pl66
.tc COMMAND KEYS ..........................................#
COMMAND KEYS
.RRL                                       !              !                       R

.tc   Cursor Movement Keys.................................#
Cursor Movement keys

 Character left                         <Lft Arrow>    or <CtrlS>
 Character right                        <Rgt Arrow>    or <CtrlD>
 Word left                              <CtrlLft>      or <CtrlA>
 Word right                             <CtrlRgt>      or <CtrlF>
 Line up                                <Up Arrow>     or <CtrlE>
 Line down                              <Dn Arrow>     or <CtrlX>
 Scroll up                              <CtrlW>
 Scroll down                            <CtrlZ>
 Page up                                <PgUp>         or <CtrlR>
 Page down                              <PgDn>         or <CtrlC>
 Top of file                            <CtrlPgUp>     or <CtrlQ><CtrlR>
 Bottom of file                         <CtrlPgDn>     or <CtrlQ><CtrlC>
 Beginning of line                      <Home>         or <CtrlQ><CtrlS>
 End of line                            <End>          or <CtrlQ><CtrlD>
 Top of screen                          <CtrlHome>     or <CtrlQ><CtrlE>
 Bottom of screen                       <CtrlEnd>      or <CtrlQ><CtrlX>

.tc   Quick Movement Commands .............................#
Quick Movement Commands

 Go to line                             <CtrlJ><CtrlL>
 Go to column                           <CtrlJ><CtrlC>
 Go to page                             <CtrlJ><CtrlP>
 Go to window                           <AltF6>        or <CtrlJ><CtrlW>
 Previous cursor position               <CtrlQ><CtrlP>
 Up to equal indent                     <AltF3>        or <CtrlJ><CtrlB>
 Down to equal indent                   <AltF4>        or <CtrlJ><CtrlE>
 Next sentence                          <CtrlQ><CtrlZ> or <AltF8>
 Previous sentence                      <CtrlQ><CtrlW> or <AltF7>

.tc   Text Markers ........................................#
Text Markers

 Set a marker by menu                   (None)         or <ShiftF1> T S
 Jump to marker by menu                 (None)         or <ShiftF1> G M
 Toggle marker display                  <CtrlK><CtrlM> or (None)
 Set marker 0..9                        <CtrlK>0 .. <CtrlK>9
 Jump marker 0..9                       <CtrlQ>0 .. <CtrlQ>9

.tc   Text Insertion and Deletion .........................#
Text Insertion and Deletion

 Undo last deletion                     <CtrlQ><CtrlU> or <Esc>
 Restore line                           <CtrlQ><CtrlL>
 Insert undo buffer                     <CtrlQ><CtrlV>
 Tab                                    <Tab>          or <CtrlI>
 Backward Tab                           <ShiftTab>
 New line                               <Enter>        or <CtrlM>
 Insert line                            <CtrlN>
 Insert control character               <CtrlP>
 Delete current character               <Del>          or <CtrlG>
 Delete character left                  <BackSpace>    or <CtrlH>
 Delete word                            <CtrlT>
 Delete to end of line                  <CtrlBks>      or <CtrlQ><CtrlY>
 Delete line                            <CtrlY>
 Delete line (no undo)                  <CtrlQ><CtrlT>
 Abort command (1 char)                 <CtrlU>

.tc   Search and Replace ..................................#
Search and Replace

 Search for pattern                     <CtrlQ><CtrlF> or <F5>
 Search and replace                     <CtrlQ><CtrlA> or <F6>
   Options:
     W   Whole words
     B   Look Backwards
     G   Start from beginning or end and (for replace) replace all
     U   Ignore case
     N   replace without asking
     L   only search marked block
     n   n is integer
         find - find nth occurrence
         replace - replace n occurrences
 Search and playback macro              <CtrlQ><CtrlM>
 Search again                           <CtrlL>
 Find matching }]>) or End              <CtrlK>[       or <AltF5>

.tc   Files ...............................................#
Files

 Edit another file (Prompt for save)    <F3>
 Abandon file                           <CtrlK><CtrlQ>
 Read file into window                  <CtrlK><CtrlR>
 Save and continue edit                 <CtrlK><CtrlS> or <F9>
 Save and exit to DOS                   <F10>          or <CtrlK><CtrlX>
 Write to named file                    <CtrlK><CtrlA> or <ShiftF9>
 Save/Switch files                      <CtrlK><CtrlD>

.tc   Windows .............................................#
Windows

 Open file                              <ShiftF3>      or <CtrlO><CtrlA>
 Close window                           <ShiftF4>
 Resize window                          <ShiftF6>      or <CtrlO><CtrlS>
 Next window                            <CtrlO><CtrlN> or <F2>
 Previous window                        <CtrlO><CtrlP> or <ShiftF2>
 Zoom window                            <CtrlO><CtrlZ> or <ShiftF5>

.tc   Block Commands ......................................#
Block Commands

 Begin block                            <CtrlK><CtrlB> or <F7>
 End block                              <CtrlK><CtrlK> or <F8>
 Column Mode                            <CtrlK><CtrlN>
 Column Replace Mode                    <CtrlK><CtrlI>
 Go to Start of block                   <ShiftF7>      or <CtrlQ><CtrlB>
 Go to End of block                     <ShiftF8>      or <CtrlQ><CtrlK>
 Copy block                             <CtrlK><CtrlC>
 Move block                             <CtrlK><CtrlV>
 Delete block                           <CtrlK><CtrlY>
 Hide block                             <CtrlK><CtrlH>
 Mark current word                      <CtrlK><CtrlT>
 Write block to file                    <CtrlK><CtrlW>
 Shift Block Left                       <CtrlK><       or <CtrlF7>
 Shift Block Right                      <CtrlK>>       or <CtrlF8>
 Strip Hi Bits from block               <CtrlK>^

.tc   Text Formatting .....................................#
Text Formatting

 Format paragraph                       <CtrlB>
 Format block                           <CtrlK><CtrlF>
 Center line                            <CtrlO><CtrlC>
 Margin release                         <CtrlO><CtrlX>
 Toggle case                            <AltF10>
 Lower case                             <CtrlK>'
 Upper case                             <CtrlK>"
 Show current font                      <CtrlJ><CtrlF>
 Select Bold                            <AltB>         or <CtrlP><CtrlB>
 Select Double                          <AltD>         or <CtrlP><CtrlD>
 Select Underscore                      <AltU>         or <CtrlP><CtrlS>
 Select Superscript                     <AltT>         or <CtrlP><CtrlT>
 Select Subscript                       <AltV>         or <CtrlP><CtrlV>
 Select Compressed                      <AltC>         or <CtrlP><CtrlA>
 Select Italics                         <AltI>         or <CtrlP><CtrlY>

.tc   Ruler and Margins ...................................#
Ruler and Margins

 Tab                                    <Tab>
 Backward Tab                           <ShiftTab>
 Set tabs                               <CtrlO><CtrlI> or .RR
 Set tab size                           (None)         or <ShiftF1> O R T
 Edit tabs                              <CtrlO><CtrlE>
 Tab temporary margin                   <CtrlO><CtrlG>
 Set temporary margin                   <CtrlO><CtrlH> or <F4>
 Restore even tabs                      <CtrlO><CtrlV>
 Toggle insert mode                     <CtrlV>        or <Ins>
 Toggle autoindent mode                 <CtrlQ><CtrlI>
 Toggle word wrap                       <CtrlO><CtrlW>
 Toggle wrap compression                (None)         or <ShiftF1> O F S
 Toggle tab line display                <CtrlO><CtrlT>
 Toggle justify                         <CtrlO><CtrlJ>
 Set left margin                        <CtrlO><CtrlL> or .LM
 Set right margin                       <CtrlO><CtrlR> or .RM
 Set top margin                         .MT            or <ShiftF1> O M T
 Set bottom margin                      .MB            or <ShiftF1> O M B
 Set page length                        .PL            or <ShiftF1> O M P
 Toggle page breaks                     <CtrlO><CtrlB>
 Toggle attributes                      <CtrlO><CtrlD>
 Toggle fixed tabs                      <CtrlO><CtrlF>
 Release Margins                        <CtrlO><CtrlX>
 Embed Current Ruler Line as .RR        <CtrlO><CtrlO>

.tc   Spelling ............................................#
Spelling

 Check Rest of Document                 <AltS>         or <CtrlJ><CtrlS>
 Check word at cursor                   <Alt5>

.tc   Macros ..............................................#
Macros

 Load macros from disk                  <AltL>
 Store macros to disk                   (None)         or <ShiftF1> M M S
 Record macro                           <AltR>         or <CtrlJ><CtrlT>
 Edit macro                             <AltE>
 Playback macro by menu                 <Alt0>
 Playback macro by key                  <AltM>
       follow with character 0..9 A..Z
 Playback Macro 1..9                    <Alt1> .. <Alt9>
 Playback macro n times with menu       <Alt->

.cp5
.tc   Line Drawing characters .............................#
Line Drawing characters

 Single Lines                           Load macro file SINGLE.MAC
 Double Lines                           Load macro file DOUBLE.MAC

.tc   Calculator ..........................................#
Calculator

 Pop Up Calculator                      <CtrlJ><CtrlM>
 Functions
    +     add
    -     subtract
    *     multiply
    /     divide
    ^     exponentiate
    ABS   absolute value
    SQRT  square root
    SQR   square value
    SIN   sine (in degrees)
    COS   cosine (in degrees)
    TAN   tangent (in degrees)
    ATN   arctangent
    LN    base e log
    LOG   base 10 log
    EXP   e^x
    FACT  factorial
    PI    the value of PI
 Paste Result                           <CtrlJ><CtrlI> =
 Paste Calculation                      <CtrlJ><CtrlI> #

.tc   Printing a file .....................................#
Printing a file

     Print file                         <CtrlK><CtrlP>
          Include file                                 .FI filename
          Offset page to right by n columns            .PO n
          Start new page                               .PA
          Start new page if fewer than n lines remain  .CP n
          Set page number to n                         .PN n
          Omit page numbers                            .OP
          Print page numbers                           .PG
          Put page number in column n                  .PC n
          Set page length to n lines                   .PL n
          Set top margin to n lines                    .MT n
          Set bottom margin to n lines                 .MB n
          Set header margin to n lines                 .HM n
          Set footer margin to n lines                 .FM n
          Start marking text in margin                 .EV @M1
          Stop Marking text in margin                  .EV @M0
          Define header lines
                .HE header line 1   }  both the
                .H1 header line 1   }  same
                .H2 header line 2
                .H3 header line 3
          Define footer lines
                .FO footer line 1   } both the
                .F1 footer line 1   } same
                .F2 footer line 2
                .F3 footer line 3
                   Special Codes within Headers and Footers
                      Insert current page number               #
                      Ignore following spaces on even pages    <CtrlP><CtrlK>
                      Take next character literally            \
                      Invoke printing functions                @
                        - return the time in format:
                              @T0   HH:MM
                              @T1   HH:MM:SS
                              @T2   HH:MM XX     where XX = AM or PM
                              @T3   HH:MM:SS XX  where XX = AM or PM
                        - return the date in format:
                              @D0  MMM DD, YYYY
                              @D1  DD/MM/YY
                              @D2  DD/MM/YYYY
                              @D3  MM/DD/YY
                              @D4  MM/DD/YYYY
                              @D5  YYYY/MM/DD
                              @D6  DD MMM YYYY
                              @D7  dayname, DD MMM YYYY
                              @D8  DD month YYYY

.tc   Index/Table of contents .............................#
Index/Table of contents

 Define Index Entry                     .IXline
                                        or <Ctrl>P<Ctrl>K at start
                                            and <Ctrl>P<Ctrl>K at end
 Define Table Of Contents Entry         .TCline
                                            or .TC1 for table 1
                                            thru to .TC9 for table 9
 Generate Table of Contents             <CtrlF5>       or <ShiftF1> M T
 Generate Index                         <CtrlF6>       or <ShiftF1> M I

