home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
keyboard
/
cedwars2.arc
/
CEDWARS.DOC
< prev
next >
Wrap
Text File
|
1988-09-23
|
12KB
|
271 lines
C E D W A R S
--------------------------------------------------------------------
C E D W A R S
>>>>> Attack of the Killer Macros!!!!!!!!!!!!!!!!
Dave Williams
(501)568-9464 UBBS (home bd.)
(408)728-5598 Nitemod
(206)745-4694 ProTech
(404)454-8756 Pecan Pi
or PO Box 181
Jacksonville, AR 82076-0181 USA
CED (for Command EDitor) is a powerful utility which enhances the DOS
command line interface. Among the functions provided are improved command
line editing and previous command retrieval, command synonyming and
parameterization, and the ability to cause automatic recall of previously
used parameters for specified commands. CED will also work inside "compatible"
programs that take input from DOS STDIN, such as debug, symdeb, list.com,
early Infocom games, etc. You quickly become addicted to the power of CED.
CED - don't compute without it!
The lack of anything like CED is one reason I've stayed with MSDOS systems.
Some of the Unix shells have a similar capability, and I've heard there's a
similar desktop utility for the MacIntosh, but as far as I know the Amiga and
ST don't have anything like it.
Chris Dunford (you can find him as the IBM section sysop on Compu$erve)
donated CED to the public domain; you don't have to send him any conscience
money. Chris's Cove Software Group also sells a somewhat fancier version
called ProCED with some enhanced capabilities.
PC Tech Journal had a rave review of ProCED in 1987. Dr. Dobbs' Journal
listed CED as one of the top-10 programs used by professional programmers.
Unfortunately, Chris's documentation is a little overpowering to a novice
user. I've found most CED users learned macros by being introduced to them by
someone else who was already using them, etc.
When IBM first contracted with Microsoft for PC-DOS 2.0, it was intended that
DOS would run a 'shell' program similar to the Unix csh. For some reason this
never materialized, possibly because most commercial software packages already
either ignored command.com or carried their own DOS-level interfaces. Anyway,
IBM never released their command line DOS shell, going to a menu system with
DOS 4.0 (US version). So with CED, you get the DOS you should have had all
along.
The two Compu$erve threads are from Basil Copeland's screen dumps. The rest
of the stuff is from "around".
*******************************************************************************
The last public domain version of CED was version 1.0D. You can check your
version with the command "CED VER" at the DOS prompt.
I have seen a number of archives called CED10D.ARC that actually have the
1.0C version of CED. The doc files were all for 1.0D.
There is a file called CED150.ARC, purporting to be CED version 1.50. I have
downloaded several of these, and they are all apparently 1.0C with the arc
name changed.
*******************************************************************************
CED and environment variables
CED apparently cannot access the DOS environment even though it communicates
through STDIN. I set a parameter in my autoexec.bat (SET HOMEDIR=\pro\asm\asrc)
and reference it with a small batch file:
@if not /%HOMEDIR%==/ cd %HOMEDIR%
Changing the file to a CED synonym
syn home if not /%HOMEDIR%==/ cd %HOMEDIR%
resulted in "invalid directory" messages from DOS. Running it with ECHO on, I
found that CED was passing
cd %HOMEDIR%
instead of the environment variable.
*******************************************************************************
If you have more than one syn with the same name, CED will report
CED: Invalid command
This isn't documented in the manual and the repeated error messages can drive
you nuts until you figure out that is wrong.
*******************************************************************************
From: Hector Santos
To: Steve Khanell Msg #177, 25-Jul-88 18:17cst
Subject: Re: CED
>
>I frequently hear of a program called CED being mentioned. What exactly
>does this program do?
>
CED is a keyboard enhancement program. It's quite powerful. The basic
feature in CED and other keyboard programs is the DOS command recaller.
By using your up and down arrow keys you can recall the previous DOS
commands you entered. I forget exactly how much it can remember.
Once you recall a DOS command, you can use your left and right arrows
to edit the command before hitting ENTER. Insert/Overwrite is also
supported.
But the main feature in CED, which is a idea born on VAX machines, is
the ability to create "synomyns". How many times do you create a batch
file just to run a program or group of programs? With CED you create
a synomyn. For example;
CED SYN d dir
this command allows the D to represent the dir command. So when you
hit D, and ENTER. The dir command is issued to DOS.
Here's a few I use a lot.
syn d dir %1 %2 %3 %4
syn t4c tpc %1 /M /T\turbo4 /U\turbo4\units;\turbo4\power
syn flist pc-flist /q %1 %2 %3 %4
syn purge erase *.bak
syn purgall wh *.bak /d %1 %2 %3
The T4C is a synomyn for a turbo pascal compiler. I like the purge
commands to erase my bak files from disk from time to time. Notice you
can pass parameters just like batch files. Synomyns are great. They
reduce batch files which take up space, and the commands are
instantaneously executed.
This the only way I use CED, the recaller and synomyns. But there is
a whole slew of features that I myself have not used and don't much about
it.
<hec>
--- Via OpXpress V1.02 Once Around the World....
* Origin: Pitt Xpress : Home of Opus Xpress (412) 864-2294 (1:129/82)
*******************************************************************************
From : MIKE ARST
To : DAVE WILLIAMS
Subject: (R) CEDWARS1
Folder : A, "Main Message Area"
I got that file and saw, to my great pleasure, that there's a patch to
make CED default to insert-mode. However, it's extensive enough and I'm
ignorant enough about using DEBUG that I'm a little concerned about
trying it lest I do something, uh, dangerous. A little knowledge in the
hands of an idiot, after all ...
Favorite CED synonyms:
STATCH ^D to make getting the list of synonyms a bit easier to type,
than using the default key;
SYN W WHIZ C:%1 to call up the blindingly fast file-finder WHIZ
SYN WD WHIC D:%1 same as last one, only searches drive D:
SYN ? LIST C:\UTIL\CED.CNF to get a "page-able" view of the CED synonym
list (the list I use is pretty large).
SYN V PKUNPAK /CM %1 %2 - "V", then supply an .ARC file name and then
the name of a member file to view. This one supplies
the /CM switch so that the file specified in %2 is
extracted to the console, and the display is paged.
You could get much fancier than that, like:
SYN V PKUNPAK /CM %1 %2 > E:\TEMP.TXT^LIST E:\TEMP.TXT^DEL E:\TEMP.TXT
... if you would prefer a "paged" display of the member files.
SYN G ECHO <esc>[J<esc>12;0H
where <esc> is actually entered into the CED.CNF file using ALT 27.
... clears the screen and puts the cursor at row 12, column 0, which I
prefer to the "home" position.
CED experts, plz. advise: I tried doing the last one as:
SYN G CLS^ECHO <esc>[12;0H - but CED seems to accept an ECHO command
like that ONLY if it is the *first* command in the synonym. Anyone know
why that is? If you do it as in the 2nd example, you get ECHO IS OFF back
from DOS - rather than the ANSI.SYS command you want.
----------------------------------------
*******************************************************************************
> CED experts, plz. advise: I tried doing the last one as:
> SYN G CLS^ECHO <esc>[12;0H - but CED seems to accept an ECHO command
ced syn g echo <esc>[2J<esc>[12:0H
will do it perfectly. Dave
*******************************************************************************
There are a couple of small programs out to let CED echo text strings back at
the DOS prompt. These are separate TSRs from CED and work via the "installable
command" feature CED has.
These utilities are pretty useless. Simply use the following:
ced syn cookie echo Polly wants a cracker, stupid!
will give you:
C>cookie
Polly wants a cracker, stupid!
C>
Ho, hum. Some people just gotta do it the hard way.
Dave
*******************************************************************************
Message 5444 DATE/TIME: 08/28/88 15:16
From : MIKE ARST
To : DAVE WILLIAMS
Subject: (R) CEDWARS
Folder : A, "Main Message Area"
Ok, I'll send the whole list: ARSTCED.ARC. But there'll be some things in
there which won't necessarily make sense. Like references to batch file
names that, surely, are unique to my oddball system. Also the word "GO,"
which appears there several times. Meaning the program CDD, which I
renamed to "GO.COM" (or .EXE, I forget), because I'm just too lazy to
type CDD.
----------------------------------------
Message 5450 DATE/TIME: 08/28/8C 15:31
From : MIKE ARST
To : DAVE WILLIAMS
Subject: Re: Upload of ARSTCED.CNF
Folder : A, "Main Message Area"
My error! I told WILDCAT that I was about to upload ARSTCED.CNF -
but it is actually an .ARC file compressed with PKARC (or PKPAK, rather)!
You'll also see a frequent reference to SAMELINE.BAT. This is just a
collection of ANSI commands which puts the cursor BACK onto the same line
where it was when the CED command was issued, so that the screen doesn't
advance downward.
Mike
(maybe you'd want to tell George when you're done downloading the file,
since I can't imagine many people being all that interested in it).
*******************************************************************************
Message 5810 DATE/TIME: 09/04/8C 03:18
From : MIKE ARST
To : DAVE WILLIAMS
Subject: CED
Folder : A, "Main Message Area"
Well, you're quite right. Putting that SAMELINE.BAT file
stuff into a CED synonym and then just referring to the
synonym in other synonyms where SAMELINE is now referred to
worked just fine. In playing with these things I did find it
wasn't necessary always to add the CHAIN character at the
*beginning* of a synonym which begins by referring to
another CED synonym. In other words:
CED SYN TEST Z^next_synonym ... was good enough:
Well, it works ok when "z" looked like this:
CED SYN Z echo <esc>[2J<esc>12;0H
If "z" contains all of the SAMELINE.BAT information, then it
does NOT work and I DO have to put the ^ character at the
beginning of synonym "test." Beats me why this is.
Thanks for the suggestions. So, you see, I'm not sick after
all. Well, I took your advice, didn't I?
----------------------------------------