home *** CD-ROM | disk | FTP | other *** search
- BLINK (see 'ON THE BLINK' in the Help pages)
-
- BLINKON.COM and BLINKOFF.COM are two tiny programs that modify how
- an EGA or VGA screen displays text mode data: BLINKOFF will change
- the screen's behaviour so that no character position blinks: any that
- have a blink attribute specified for them will instead show a bright
- colour for the background. (Normally only foreground colours may be
- bright). BLINKON will reset the screen to its normal behaviour.
- NOTE that these little programs will work only on EGA or VGA
- adaptors.
-
-
- DELBNOT Paul Singer Westcliff-on-Sea
-
- This .BAT file is a utility you will find compelling: DELBNOT should
- be remembered as "DELETE BUT NOT..". All it does is delete every
- file in the current directory with the exception of the files
- specified on the command line. (It will also not delete itself or
- COMMAND.COM, or any that have the read-only attribute set).
- It will accept multiple parameters. When there are two or
- three files you wish to preserve, this .BAT can save ages. One
- proviso: when it has finished, none of the surviving files will have
- the read-only attribute set - even if it was set beforehand - so be
- prepared to make adjustments if you do use that particular facility.
- If the current directory contains COMMAND.COM, this .BAT will
- warn the user that the current directory may be the root: because you
- will always get the 'Are you Sure?' message, the user will then have
- the opportunity to abort, by replying 'N'. The full version is in the
- HELP SCREEN section of the magazine, but a shorter version, without
- REM's, is in this directory.
-
-
- PRMT.BAT by R Raveendran (West Croydon)
-
- Mr Raveendran claims that prompts can be fun: he backs this up with
- the following .BAT files to control your prompt. He provided
- PRMTOP.BAT, which provides a special prompt that maintains the first
- line on the page as a sort of status line. On it you can optionally
- have the date, time, path, etc., while your working prompt is a simple
- A: or C:, or similar. We changed this idea slightly so that there is
- a second file, PRMT.BAT, which provides for building your own prompt;
- A few things to note:
- 1. these rely on ANSI.SYS being loaded; see
- the Background pages of the magazine to learn how to ensure ANSI.SYS
- is present.
- 2. the first parameter must be a two digit number in the range
- 30 to 37 (for the FOREGROUND colour): the second must be in the range
- 40 to 47 (for the BACKGROUND colour). These are determined from the
- following table:
- 30 or 40 black
- 31 or 41 red
- 32 or 42 green
- 33 or 43 yellow (brown)
- 34 or 44 blue
- 35 or 45 magenta
- 36 or 46 cyan
- 37 or 47 white
- 3. up to seven more parameters may be included, in the
- following forms:
- b or B straight up/down line
- d or D date
- E[0m white foreground on black
- E[1m bright foreground
- E[5m blink foreground
- g or G >
- h or H backspace
- l or L <
- n or N active drive
- p or P active directory
- q or Q =
- t or T time
- x or X followed by a single word
-
- For example: PRMT 32 41 E[1m xHi E[0m xthere!
-
- This will produce a prompt in which "Hi" appears in bright
- green on red, and "there!" in ordinary white on black. The whole
- prompt will be followed automatically with the familiar ">". If you
- wish to put several words, remember that normally each word is a new
- parameter. If this leaves you short of parameters, try this trick:
- hold down the ALT key while typing 255 from the numeric pad: when you
- release the ALT key, the cursor should move forward, leaving a
- character which looks like a space, but isn't. In this way, whole
- phrases can be grouped together to appear as one word.
- Note that PRMT composes a PROMPT for you: PRMTOP composes a
- top-line status, with a simple prompt, but the syntax is the same. If
- you compose a large prompt, you may get a message like, "Out of
- Environment Space". The way to increase environment space differs
- between versions of MS-DOS, but can be found in your manual under the
- SHELL directive in the chapter dealing with CONFIG.SYS.
- We warn you that before changing your CONFIG.SYS you make sure
- that you have a system diskette from which to boot in case of an error
- that blocks your changed version working properly.