spacerace / dos-fortune

The widely known UNIX fortune for MS-DOS and others

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOS fortune

This is a fortune clone for DOS. It also includes 11MB of textfiles bringing thousands of cookies with it. Configuration of selected categories is very easy, just edit FORTUNE.CFG.

Screenshot

ScreenShot

Installing and Running it

If no arguments are given to FORTUNE.COM it will look into folder
C:\GAMES\FORTUNE\ for FORTUNE.CFG. If you give an argument, it has to be a
folder with a valid FORTUNE.CFG and cookie files in it.

FORTUNE.COM C:\GAMES\FORTUNE\  

The folder C:\GAMES\FORTUNE needs this content:

  • FORTUNE.COM
  • FORTUNE.CFG
  • all the files listed in FORTUNE.CFG (cookie-files)

Here in source's root folder I also supply "fortune.zip", which is a complete
package of FORTUNE and all COOKIE-FILES. Simply unpack to a folder and call it.
An unpacked folder called 'dist' also exists.

FORTUNE.CFG and COOKIE-FILES

Fortune files are standard unix-fortune files. They may be in subfolders. Every cookie can be more than one line. They are seperated by '%' character. The config file only holds filenames of cookie files. Lines can also be comments, these start with a '#' character. No empty lines are allowed.

Emulating it (dosbox)

On linux-systems you can use my makefile for starting dosbox, it does autostart fortune.

$ make dosbox

If you don't have it installed, here's how to do that on debian (ubuntu):

$ apt-get install dosbox

Speed issues

This is quite slow, needs to be improved with database files rather than counting every cookie file all the time again and again...

Building it

You'll only need "dev86 / bcc" and "make"

$ apt-get install bcc make

There are different targets for make:

  • all
  • dosbox

all builds x86-pong. dosbox starts dosbox with my provided dosbox.conf

License

Fortune code is totally written by me, it comes under terms of GPL-v2. Cookie-files are taken from gentoo-project, TODO document licenses for these.

About

The widely known UNIX fortune for MS-DOS and others


Languages

Language:C 97.2%Language:Makefile 2.8%