home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
dosutils
/
dosed360.arj
/
DOSED.DOC
< prev
Wrap
Text File
|
1991-03-09
|
6KB
|
199 lines
DOSED.COM (DOS EDitor) [v1.0: 15/3-1989]
========= ============
Resident program (about 2800 bytes) that gives extended operations
on the DOS commandline. The three new functions are:
* Editing
* History, recall previous commands
* Filename completion
DOSED can be distributed freely. There exists no warranty, and the
author shall not be liable for any loss of data due to using this
program. DOSED is written by
Sverre H. Huseby
Frankendalsvn. 21
N - 3250 Larvik
Norway
sverrehu@ifi.uio.no
Editing
-------
With DOSED it is possible to edit the current commandline using
the following keys:
Special keys | Ctrl-keys | Meaning
-----------------+-----------+--------------------------------
Left arrow | Ctrl-S | Move character left
Right arrow | Ctrl-D | Move character right
Ctrl-left arrow | Ctrl-A | Move word left
Ctrl-right arrow | Ctrl-F | Move word right
Home | | Move to beginning of line
End | | Move to end of line
Ins | Ctrl-V | Toggle insert mode
Del | Ctrl-G | Delete character under cursor
BackSpace | Ctrl-H | Delete character left of cursor
When insertmode is default (on or off, specified by the /I-switch),
the cursor is a normal underline. When toggled to not default, the
cursor is turned into a block.
History
-------
Previous commands can be recalled using the following keys:
Special keys | Ctrl-keys | Meaning
-----------------+-----------+--------------------------------
Up arrow / F3 | Ctrl-E | Recall previous command
Down arrow | Ctrl-X | Recall "next" command in the
| | circular buffer.
F1 | | Recall previous command and
| | move to beginning of the line.
The historybuffer is a circular buffer of 512 bytes, in which all
commands longer than 2 characters are stored.
Filename completion
-------------------
When pressing Tab or Ctrl-I, DOSED will try to complete the filename
immediately to the left of the cursor. As an example, assume you
want to look at a file called README.TXT. (The underline character
symbolises the cursor, and should not be typed in.) You write
TYPE R_
an press Tab just after the R. If no more files starts with an R,
DOSED completes the filename and gives you the line
TYPE README.TXT _
A blank is added after the filename, to let you enter more
parameters.
Now assume there was a file called RESTORE.COM in the same directory.
DOSED wouldn't know whether you wanted README.TXT or RESTORE.COM
since both starts with an R, so it completes as much as possible:
TYPE RE_
No blank is added, since the filename isn't complete. To get
README.TXT, you should type an A, and press Tab again.
TYPE REA_
This time DOSED knows the only file starting with REA is README.TXT,
and fully completes the filename.
TYPE README.TXT _
There's one more thing: If the file you want happens to be a
directory, DOSED appends a backslash (\) assuming you will enter a
more accurate path. As an example, assume our file README.TXT is
in a directory called \TOOLS, and that no other directories starts
with a T. You write
TYPE \T_
and press Tab. DOSED completes to
TYPE \TOOLS\_
Now you type an R, and press Tab again:
TYPE \TOOLS\R_
and DOSED faithfully completes the line to
TYPE \TOOLS\README.TXT _
(assuming no other file in \TOOLS starts with an R.)
Starting DOSED
--------------
DOSED can be started with or without parameters. If no parameters
are given, the program is activated with default insertmode set to
off. That means characters are overwritten as you type.
Legal parameters are:
OFF : Deactivates the program. It is not removed from memory,
and can be reactivated with DOSED.
/I : Sets default insertmode to on.
/Q : Quiet. Only the identification line is displayed.
For use in batchfiles.
Attention
---------
Be aware of the following:
* Control-characters are no longer displayed as ^X, but rather
as the matching character in IBM's ASCII-table.
* The normal commandline editing using the functionkeys are no
longer supported.
* Commandlines shorter than 3 characters are not stored in
the historybuffer.
* DOSED will only work when the keyboard is read using INT 21h,
function 0Ah. This is the methode used by COMMAND.COM.
Other shell-programs (like 4DOS) uses their own inputroutines,
causing DOSED to be inactive.
* DOSED might cause problems when used with other programs that
reprogram INT 21h, function 0Ah. Try starting them in a
different order, and see if that works better.
Finally
-------
If you decide to use DOSED, thanks! I would be glad to hear from
you if you find any bugs, or just to know that one more person uses
my program.
And... please ignore my poor English. Hope you understand anyway!
Sverre.