AmigaDOS Template

AmigaDOS Pattern Matching



            ?               matches with a single character

            #<a>            matches for occurances of <a>

            <a> | <b>       matches if either <a> or <b> is a match

            ~<a>            matches for everything except <a>

            (<a><b>...)     forms a group of patterns

            %               matches for the NULL string

            [<a>-<b>]       creates a range with a start and end pattern

            *               matches all files [if the * is activated as a wildcard)


        Examples:

            ?               matches all single character files

            file?.info      matches files beggining with 'file', followed by one character, ending with .info.

            #?              matches all files

            #?.lha          matches all files ending in .lha

            mod.#?          matches all files beginning with mod.

            ~(disk.info)    matches all files except disk.info

            ~(#?.info)      matches all files except those that end with .info

       


Qualifiers

KEY QUALIFIER
ALT - either ALT
RALT - right ALT
LALT - left ALT
SHIFT - either SHIFT
RSHIFT - right SHIFT
LSHIFT - left SHIFT
RCOMMAND - right COMMAND
LCOMMAND - left COMMAND
CONTROL - CTRL
NUMERICPAD - numeric keypad
RBUTTON - MENU mouse button
LBUTTON - SELECT mouse button
A qualifier must also be followed by an alphanumeric key, including but not limited to: [A B C D E F G H I J K L M N O P Q R S T U V W X Y Z] [1 2 3 4 5 6 7 8 9 0 - = \\ [ ] ; ' , . /] [F1 F2 F3 F4 F5 F6 F7 F8 F9 F10] There may also be more than one qualifier. A sample might be: RALT F9, RSHIFT Y, LBUTTON ALT 6, etc.

Control Codes



            CTRL A              Move the cursor to the leftmost position.

            CTRL B              Delete entire command line.

            CTRL C              Send a BREAK sequence to the current process.

            CTRL D              Send a BREAK sequence to the current script.

            CTRL H              Deletes character to the immediate left of current position.

            CTRL J              Inserts a linefeed.

            CTRL K              Delete all text to the right of the current position.

            CTRL M              Executes current command line.

            CTRL Q              Restarts console output, if stopped with CTRL-S.

            CTRL S              Suspend console output.

            CTRL U              Deletes everything to the immediate left of the current position.

            CTRL W              Deletes word to the immediate left of the current position.

            CTRL X              Deletes the current command line.

            CTRL Y              Yanks any input deleted with CTRL-K.

            CTRL Z              Move the cursor to the rightmost position.

            CTRL \              Exits the Shell.


            DEL                 Deletes character at current position.

            BACKSPACE           Deletes character to the immediate left of current position.

            SHIFT DEL           Delete all text to the right of the current position.

            SHIFT BACKSPACE     Delete all text to the left of the current position.


            CURSOR-LEFT         Moves cursor one position to the left.

            CURSOR-RIGHT        Moves cursor one position to the right.

            CURSOR-DOWN         Displays next command in history buffer.

            CURSOR-UP           Displays previous command in history buffer.

            SHIFT CURSOR-LEFT   Moves cursor to leftmost position.

            SHIFT CURSOR-RIGHT  Moves cursor to rightmost position.

            SHIFT CURSOR-DOWN   Displays last command in history buffer.

            SHIFT CURSOR-UP     Displays first command in history buffer.


            RIGHT AMIGA C       Copy all text highlighted in the Shell window.

            RIGHT AMIGA V       Paste all text in the current buffer to
                                the current cursor position.


            ESCAPE              Enter an ESCAPE code at the Shell.

            RETURN              Executes current command line.

            SHIFT RETURN        Executes current command line.



Escape Codes

In order to execute these commands, press the Escape key followed by the rest of the command. The Escape key should display a [ in reverse video in the console window.
            ESCc        Clear window; reset all to defaults

            ESC[0m      Reset graphics to defaults

            ESC[1m      Boldface ON

            ESC[3m      Italics ON

            ESC[4m      Underline ON

            ESC[7m      Reverse Video ON

            ESC[8m      Set text color to background

            ESC[22m     Boldface OFF

            ESC[23m     Italics OFF

            ESC[24m     Underline OFF

            ESC[27m     Reverse Video OFF

            ESC[28m     Set text color to normal

            ESC[30m     Set text color to color 0

            ESC[31m     Set text color to color 1

            ESC[32m     Set text color to color 2

            ESC[33m     Set text color to color 3

            ESC[34m     Set text color to color 4

            ESC[35m     Set text color to color 5

            ESC[36m     Set text color to color 6

            ESC[37m     Set text color to color 7

            ESC[38m     Set text color to color 8

            ESC[39m     Set text color to default

            ESC[40m     Set text background color 0

            ESC[41m     Set text background color 1

            ESC[42m     Set text background color 2

            ESC[43m     Set text background color 3

            ESC[44m     Set text background color 4

            ESC[45m     Set text background color 5

            ESC[46m     Set text background color 6

            ESC[47m     Set text background color 7

            ESC[48m     Set text background color 8

            ESC[49m     Set text background color to default

            ESC[#t      Set maximum line length¹

            ESC[#u      Set maximum lines of window¹

            ESC[#x      Indent pixels from left border¹

            ESC[#y      Indent pixels from top border¹


                NOTE¹: These commands require the value to be inserted
                       at the # symbol. For example, to set a line length
                       of 80 characters, use the command ESC[80t.


Error Messages


            103 Not enough memory
            104 Process table full
            114 Bad template
            115 Bad number
            116 Required argument missing
            117 Argument after '=' missing
            118 Too many arguments
            119 Unmatched quotes
            120 Argument line invalid or too long
            121 File is not executable
            122 Invalid resident library
            202 Object is in use
            203 Object already exists
            204 Directory not found
            205 Object not found
            206 Invalid window description
            209 Packet request type unknown
            210 Object name invalid
            211 Invalid object lock
            212 Object not of required type
            213 Disk not validated
            214 Disk is write protected
            215 Rename across devices attempted
            216 Directory not empty
            217 Too many levels
            218 Device (or volume) not mounted
            219 Seek error
            220 Comment is too long
            221 Disk is full
            222 Object is protected from deletion
            223 File is write protected
            224 File is read protected
            225 Not a valid DOS disk
            226 No disk in drive
            232 No more entries in directory
            233 Object is soft link


Subsystem ID Codes



                            xx 00 0000 . 00000000


                        01      Exec Library
                        02      Graphics Library
                        03      Layers Library
                        04      Intuition Library
                        05      Math Library
                        06      CList Library
                        07      DOS Library
                        08      RAM Library
                        09      Icon Library
                        10      Audio Device
                        11      Console Device
                        12      GamePort Device
                        13      Keyboard Device
                        14      TrackDisk Device
                        15      Timer Device
                        20      CIA Resource
                        21      Disk Resource
                        22      Misc Resource
                        30      BootStrap
                        31      Workbench




General Error Codes



                            00 xx 0000 . 00000000


                        01      Insufficient Memory
                        02      MakeLibrary Error
                        03      OpenLibrary Error
                        04      OpenDevice Error
                        05      OpenResource Error
                        06      I/O Error




CPU Traps




                            00 00 0000 . xxxxxxxx

                - This is the location in memory that the last task was
                using at the time the system crashed.


                        02      Bus Error
                        03      Address Error
                        04      Illegal Instruction
                        05      Divide by Zero
                        06      CHK Instruction
                        07      TRAPV Overflow
                        08      Priviledge Violation
                        09      Instruction Trace
                        0A      Line A Emulation
                        0B      Line F Emulation
                        20      TRAP 0
                        21      TRAP 1
                        22      TRAP 2
                        23      TRAP 3
                        24      TRAP 4
                        25      TRAP 5
                        26      TRAP 6
                        27      TRAP 7
                        28      TRAP 8
                        29      TRAP 9
                        2A      TRAP 10
                        2B      TRAP 11
                        2C      TRAP 12
                        2D      TRAP 13
                        2E      TRAP 14
                        2F      TRAP 15



Specific Error Codes

 

                            00 00 xxxx . 00000000


            ExecLib        01000000    Exec Library Error
            ExcptVect      81000001    Vector Exception Error
            BaseChkSum     81000002    ExecBase Checksum Error
            LibChkSum      81000003    Library Checksum Error
            LibMem         81000004    No Library Memory Error
            MemCorrupt     81000005    Corrupt Free Memory List Error
            IntrMem        81000006    No Interrupt Server Memory
            InitAPtr       81000007    InitStruct() of an APTR source
            GraphicsLib    02000000    Graphics Library Error
            CopDisplay     82010001    No Copper Display List Memory
            CopInstr       82010002    No Copper Instruction List Memory
            CopListOver    82000003    Copper List Overflow
            CopIListOver   82000004    Copper Intermediate List Overflow
            CopListHead    82010005    No Copper List Head Memory
            LongFrame      82010006    No Long Frame Memory
            ShortFrame     82010007    No Short Frame Memory
            FloodFill      82010008    No Flood Fill Memory
            TextTmpRas     02010009    No Temporary Rastport Text Memory
            BltBitMap      8201000A    No Bitmap Memory
            LayersLib      03000000    Layers Library Error
            Intuition      04000000    Intuition Library Error
            GadgetType     84000001    Gadget Type Unknown Error
            BadGadget      04000001    Recoverable form of GadgetType
            CreatePort     84010002    Create Port Memory Error
            ItemAlloc      04010003    No Item Plane Allocation Memory
            SubAlloc       04010004
            PlaneAlloc     84010005    No Plane Allocation Memory
            ItemBoxTop     84000006    Item Box Top Error
            OpenScreen     84010007    No Open Screen Memory
            OpenScrnRast   84010008    No Screen Rastport Memory
            SysScrnType    84000009    Unknown Screen Type
            AddSWGadget    8401000A    No Gadget Memory Error
            OpenWindow     8401000B    Open Window Memory Error
            BadState       8400000C    Bad State Return Error
            BadMessage     8400000D    Bad IDCMP Message Error
            WeirdEcho      8400000E    Weird Echo Error
            NoConsole      8400000F    Unable to Open Console Device Error
            MathLib        05000000    Math Library Error
            CListLib       06000000    CList Error
            DOSLib         07000000    DOS Library Error
            StartMem       07010001    No Startup Memory Error
            EndTask        07000002    EndTask Error
            QPktFail       07000003    QPackett Failure Error
            AsyncPkt       07000004    Unexpected Packet Received Error
            FreeVec        07000005    FreeVec Error
            DiskBlkSeq     07000006    Disk Block Sequence Error
            BitMap         07000007    Bitmap Corrupt Error
            KeyFree        07000008    Key Already Free Error
            BadChkSum      07000009    Bad Checksum Error
            DiskError      0700000A    Disk Error
            KeyRange       0700000B    Key Out of Range Error
            BadOverlay     0700000C    Bad Overlay Error
            RAMLib         08000000    RAM Library Error
            IconLib        09000000    Icon Library Error
            AudioDev       10000000    Audio Device Error
            ConsoleDev     11000000    Console Device Error
            GamePortDev    12000000    GamePort Device Error
            KeyboardDev    13000000    Keyboard Device Error
            TrackDiskDev   14000000    Track Disk Device Error
            TDCalibSeek    14000001    Track Disk Calibrate Seek Error
            TDDelay        14000002    Track Disk Delay Error
            TimerDev       15000000    Timer Device Error
            TMBadReq       15000001    Bad Request Error
            CIARsrc        20000000    CIA Resource Error
            DiskRsrc       21000000    Disk Resource Error
            DRHasDisk      21000001    Disk Already Present Error
            DRIntNoAct     21000002    Interrupt: No Active Unit Error
            MiscRsrc       22000000    Miscellaneous Resource Error
            BootStrap      30000000    Boot Strap Error
            BootError      30000001    Boot Code Error
            Workbench      31000000    Workbench Error
            Help           48454C50    Undefined Error