home *** CD-ROM | disk | FTP | other *** search
/ PC Plus 53 / ISSUE_53_FEB_1991 / PCPLUS / MAGAZINE / MAGAZINE.DOC < prev    next >
Encoding:
Text File  |  1991-01-01  |  4.6 KB  |  94 lines

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