home *** CD-ROM | disk | FTP | other *** search
-
- 4tune - Put a fortune in your prompt!
-
-
- This small program can be used simply to display a random fortune on the
- screen, or to insert it in the PROMPT variable.
-
-
- ------------------------------------------------------------------
-
-
- If you run 4tune right away, it will show you a one-line-fortune
- on the screen. But if you specify a /p option at activation time,
- 4tune will:
-
- - read your prompt variable (it doesn't matter how fancy),
- - add few escape sequences
- - add the random fortune
- - again some escape sequences
- - and then your old prompt value.
-
- this will make the fortune to be always present on the top line of the screen
- while in DOS.
-
- I suggest you to run it from your autoexec.bat so to have every day a
- different fortune.
-
- For instance, today my PROMPT variable looks like this:
-
- PROMPT=$e[s$e[H$e[0;1;37;44mSex causes cancer. We'd wipe out cancer in one
- generation if no one had sex.$e[K$e[u$e[0m$e[1;42;33m$p$e[1;5;42;31m$e[0;1;
- 42;34m»$g$e[0;1;36m
-
- when you want 4tune to modify your prompt, you must have:
-
- - ANSI.SYS in your CONFIG.SYS (this is because it uses escape sequences)
-
- - MS-DOS >= 3.30 (because I don't know how to get PSP with earlier version).
-
- 4tune by default, search for a file called TUNE in the current
- directory, but you can also tell him where to find it:
-
- ..to display a fortune...
-
- 4tune d:\utility\tune
-
- ... and if you want it to be added to PROMPT...
-
- 4tune d:\utility\tune /p
-
-
- If a message says that there is not enough environment space,
- just add in config.sys the something like this:
-
- shell = c:\command.com c:\ /E:500 /P
-
- where /E:500 tells the system to allocate 500 bytes for storing
- system variables and stuff like that.
-
-
- NOTE1:
-
- This is NOT a resident program that writes directly to the screen,
- this means that it will never hang your computer!
-
- NOTE2:
-
- The /o parameter it's used to display internal variables values.
- I used it when I was testing the program.
-
- TUNE is a simple ASCII file so you can add or modify everything
- you want in it (just remember not to exceed 80 character length).
- There are not real limits on the size of this file; right now
- it contains more than 2200 fortunes and is about 100 KBytes but
- teorricaly its size can run up to 95 MBytes :-) !
- (I tried with a file 600K long and it worked fine).
-
-
- Luca Favaro
- V. Magnano, 2
- 10010 Piverone, ITALY
-
- --------------------------------------------------------------------------
- ** Luca Favaro lucaf@icoven.ico.olivetti.com **
- --------------------------------------------------------------------------
-