home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / TEXT / UTILITY / 4TUNE.ZIP / READ.ME < prev    next >
Encoding:
Text File  |  1990-08-10  |  2.6 KB  |  87 lines

  1.  
  2. 4tune - Put a fortune in your prompt!
  3.  
  4.  
  5. This small program can be used simply to display a random fortune on the
  6. screen, or to insert it in the PROMPT variable.
  7.  
  8.  
  9. ------------------------------------------------------------------
  10.  
  11.  
  12. If you run 4tune right away, it will show you a one-line-fortune
  13. on the screen. But if you specify a /p option at activation time,
  14. 4tune will:
  15.  
  16. - read your prompt variable (it doesn't matter how fancy),
  17. - add few escape sequences
  18. - add the random fortune
  19. - again some escape sequences
  20. - and then your old prompt value.
  21.  
  22. this will make the fortune to be always present on the top line of the screen
  23. while in DOS.
  24.  
  25. I suggest you to run it from your autoexec.bat so to have every day a
  26. different fortune.
  27.  
  28. For instance, today my PROMPT variable looks like this:
  29.  
  30. PROMPT=$e[s$e[H$e[0;1;37;44mSex causes cancer.    We'd wipe out cancer in one
  31. 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;
  32. 42;34m»$g$e[0;1;36m
  33.  
  34. when you want 4tune to modify your prompt, you must have:
  35.  
  36. - ANSI.SYS in your CONFIG.SYS (this is because it uses escape sequences)
  37.  
  38. - MS-DOS >= 3.30 (because I don't know how to get PSP with earlier version).
  39.  
  40. 4tune by default, search for a file called TUNE in the current
  41. directory, but you can also tell him where to find it:
  42.  
  43. ..to display a fortune...
  44.  
  45.     4tune d:\utility\tune
  46.  
  47. ... and if you want it to be added to PROMPT...
  48.  
  49.     4tune d:\utility\tune /p
  50.  
  51.  
  52. If a message says that there is not enough environment space,
  53. just add in config.sys the something like this:
  54.  
  55.     shell =  c:\command.com c:\ /E:500 /P
  56.  
  57. where /E:500 tells the system to allocate 500 bytes for storing
  58. system variables and stuff like that.
  59.  
  60.  
  61. NOTE1:
  62.  
  63. This is NOT a resident program that writes directly to the screen,
  64. this means that it will never hang your computer!
  65.  
  66. NOTE2:
  67.  
  68. The /o parameter it's used to display internal variables values.
  69. I used it when I was testing the program.
  70.  
  71. TUNE is a simple ASCII file so you can add or modify everything
  72. you want in it (just remember not to exceed 80 character length).
  73. There are not real limits on the size of this file; right now
  74. it contains more than 2200 fortunes and is about 100 KBytes but
  75. teorricaly its size can run up to 95 MBytes :-) !
  76. (I tried with a file 600K long and it worked fine).
  77.  
  78.  
  79. Luca Favaro
  80. V. Magnano, 2
  81. 10010 Piverone, ITALY
  82.  
  83. --------------------------------------------------------------------------
  84. **      Luca Favaro        lucaf@icoven.ico.olivetti.com        **
  85. --------------------------------------------------------------------------
  86.  
  87.