home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
database
/
dpclk101.arj
/
DPCLOCK.DOC
< prev
Wrap
Text File
|
1993-07-15
|
5KB
|
157 lines
DPCLOCK 1.01
────────────
Purpose
───────
DPCLOCK (DOS Prompt CLOCK) is, yes, another onscreen clock. The variation
is that this clock is displayed only at the DOS prompt. It does not appear
over your application programs.
DPCLOCK is similar to, and uses the same basic syntax as, Randolph Beck's
older DOSCLOCK. However, it is updated for compatibility with DOSKEY and
PCED 2.1, has a few additional options, and does not support DOSCLOCK's /*
option (display clock over applications).
Version 1.01 corrects an obscure bug that may cause problems for those
few application programs that use DOS buffered input functions.
Installation
────────────
The command to install DPCLOCK is:
DPCLOCK [/12] [/24] [/C] [/S] [/M]
All of the options are, well, optional. Thus, the simplest way to start
DPCLOCK is to simply type the command:
DPCLOCK
DPCLOCK will load and display the current time in the upper right hand
corner of your screen.
┌────────────────────────────────────────────────────────────────┐
│ IMPORTANT │
│ If you use PCED (version 2.1 or later), DOSKEY, or a similar │
│ command line editor, load the editor BEFORE loading DPCLOCK. │
└────────────────────────────────────────────────────────────────┘
The options, if present, may be in any order. They are not case-sensitive,
so "/m" and "/M" are the same. The options are:
/12 Display the clock in 12-hour format with "am" or "pm".
This is the default setting.
/24 Display the clock in 24-hour (military) format.
/C Specify clock display color; see below for more information.
/M Display hours and minutes (HH:MM) only. This is the
default setting.
/S Display hours, minutes, and seconds (HH:MM:SS).
For example, the following command selects a 24-hour display with seconds
using color 116:
DPCLOCK /24 /S /C116
Changing options
────────────────
After loading, you can re-run DPCLOCK at any time to change the options.
For example, you can switch back to a 12-hour clock showing HH:MM by typing
this command:
DPCLOCK /12 /M
Display colors
──────────────
Normally, DPCLOCK doesn't do anything about screen colors when it displays
the clock; it simply uses whatever colors are already there. If you want
DPCLOCK to use a particular color, you can specify it with the /C option.
You can specify the color when you load DPCLOCK and as often as you want
after it is loaded.
To specify the color, you need color codes. For color monitors, use the
following chart:
Code Color
──── ─────
0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Yellow
7 White
Specify the color in this format:
fg[+];bg
"fg" is the foreground color and "bg" is the background color; add "+" to
the foregound color to brighten it (by the way, "bright black" is a dark
grey on most monitors). For example:
DPCLOCK /C6;1 (yellow on blue)
DPCLOCK /C7+;3 (bright white on cyan)
For black backgrounds, you can omit the BG color. These are identical:
DPCLOCK /C2+;0 (bright green on black)
DPCLOCK /C2+ (bright green on black)
For monochrome monitors, use one of the following codes:
/C1 Underlined
/C1+ Bright underlined
/C7 Normal
/C7+ Bright
/C0;7 Inverse
To revert to normal processing (DPCLOCK uses whatever colors it finds), use
/C0.
Unloading DPCLOCK
─────────────────
If you need to unload DPCLOCK, run the program again with the /U option:
DPCLOCK /U
DPCLOCK will unload itself from memory if possible. It may not be possible
if other resident programs were loaded after DPCLOCK; DPCLOCK will display a
message if this is the case.
Notes
─────
1. DPCLOCK uses about 850 bytes of memory when installed.
2. The clock may display "over" a few applications; for example, the clock
is displayed while you are entering a search string in Buerg Software's LIST
program. For the most part, though, the clock will display only at the DOS
prompt.
-----------------------------
DPCLOCK was written and is hereby
released to the public domain by:
Chris Dunford
The Cove Software Group
Post Office Box 1072
Columbia, MD 21044
410/992-9371
CompuServe: 76703,2002
Internet: 76703.2002@compuserve.com
This program is provided "as is." The author disclaims all liability for
any damages caused by, or claimed to have been caused by, the program. By
using this free program, you agree to this.