PCMKEY.COM (VERSION 1.0) Copyright (c) 1994, Douglas Boling ------------------------------------------------------------------------- First Published in PC Magazine November 22, 1994 (Utilities) ------------------------------------------------------------------------- PCMKEY by Douglas Boling PURPOSE: PCMKEY provides command stacking and alias translation for COMMAND.COM or other DOS command interpreters. Editing keys can be defined to suit the user. SETUP: To install PCMKEY, type PCMKEY at a command line prompt. The command line switches are: /B = Set buffer size* /C = Toggle underline cursor for insert /D = Disable alias translation /E = Enable alias translation /F = Define filename of command file /I+ = Match case in search /I- = Ignore case in search /K = List key assignments /L = List aliases /M = Minimum command length to stack /P = Define command separator* /S = Set size of command stack* /U = Uninstall *Switches valid only at install time.REMARKS: To create an alias, type the one-word name of the alias followed by the text to substitute for the alias. To assign a key, specify the key enclosed in square brackets followed by the text to insert or an editor command also enclosed in square brackets. The allowable editing commands are shown in the table below. Keys are specified by their lowercase letter (for alphabetic keys) or by their name. Below find a list of key names recognized by PCMKEY. Text aliases can include command line parameters and environment variables. Command line parameters are specified by %0 though %9; environment variables are enclosed in % signs. Multiple commands can be specified in an alias using the $t separator. If an alias is specified on the command line, the redirection and piping symbols >, <, and | can be specified using the $l, $g, and $b parameters. These are the default assignments for the PCMKEY command line editor. -------------------------------------------------------------------- Key Function Left Arrow Moves the cursor one character to the left. Right Arrow Moves the cursor one character to the right. Up Arrow Recalls the previous command using any partial command as a search template. Down Arrow Recalls the next command in the stack using any partial command as a search template. Home Moves the cursor to the start of the command line. End Moves the cursor to the end of the command line. Ins Toggles the Insert/Overstrike mode. Del Deletes the character at the current cursor position. Ctrl-Left Moves the cursor one word to the left. Ctrl-Right Moves the cursor one word to the right. Ctrl-End Deletes all characters to the right of the cursor. Backspace Deletes the character to the left of the cursor. Ctrl-Backspace Deletes the word to the left of the cursor. Tab Inserts eight spaces in the command. Escape Clears the current command line. Enter Ends the editing and sends the command to DOS. F3 Recalls the previous command without any search. F7 Lists stacked commands on the screen. F9 Selects stacked command by number. Alt-F7 Clears the command stack. Alt-F10 Clears the alias list ------------------------------------------------------------------------- This table lists the available editing functions in PCMKEY. ------------------------------------------------------------------------- Editor Function Description curleft Moves the cursor one character to the left. curright Moves the cursor one character to the right. srchcmd Recalls the previous command using any partial command as a search template. nextcmd Recalls the next command in the stack using any partial command as a search template. prevcmd Recalls the previous command without any search. home Moves the cursor to the start of the command line. end Moves the cursor to the end of the command line. toggleins Toggles the Insert/Overstrike mode. del Deletes the character at the current cursor position. prevword Moves the cursor one word to the left. nextword Moves the cursor one word to the right. del2eol Deletes all characters to the right of the cursor. bksp Deletes the character to the left of the cursor. tab Inserts eight spaces in the command. clrcmd Clears the current command line. wordbksp Deletes the word to the left of the cursor. enter Ends the editing and sends the command to DOS. dumpstack Lists stacked commands on the screen. pickcmd Selects stacked command by number. clrstack Clears the command stack. clralias Clears the alias list. abortcmd Aborts the current entry and returns to COMMAND.COM. prefix1 Defines first user-definable prefix key. prefix2 Defines second user-definable prefix key. prefix3 Defines third user-definable prefix key. nop Disables key -------------------------------------------------------------------------------- Douglas Boling is a Contributing Editor of PC Magazine. --------------------------------------------------------------------------------