INSTALLATION
------------

	1.  cd ./src

	2.  Go to step 3 if your system has ncurses (e.g. Linux).
	    Edit Makefile and remove -DHAVE_NCURSES from DEFS. Also
            remove rc.c from SRCS and rc.o from OBJS. Change LIBS as
            appropriate (Usually, it should be '-lcurses -ltermcap').
            Go to step 6.

	3.  Edit Makefile and remove -DBROKEN_WSCRL from DEFS if you
            are using ncurses 1.8.3 or newer. Menu scrolling should
            be faster. DON'T REMOVE IT IF YOU ARE NOT USING AT LEAST
            VERSION 1.8.3 OF NCURSES.
	    
	    (Stuart's NOTE: I recommend that you use this with ncurses 1.8.5
	    or later.  You can get it from ftp.netcom.com, in
	    /pub/zmbenhal/ncurses/1.8.5.taz.  I've not tested this release
	    with any older versions of ncurses.)

        4.  Edit dialog.h and change USE_SHADOW to FALSE if you don't
            want shadowed dialog boxes. Also change USE_COLORS to
            FALSE if you don't want colors. Note that 'dialog' will
            check if the terminal supports colors, and will use mono
            settings if it doesn't, so USE_COLORS won't do any harm
            even if you have a mono display. Also note that USE_SHADOW
            implies USE_COLORS. These two options can be changed at
            run-time using the run-time configuration file (see below).

	5.  Edit colors.h to change default color definitions if you
            don't like the defaults. These are only compiled in defaults,
            you can change them at run-time using the run-time
            configuration file.

	6.  'make depend; make install' will compile and install the
            binaries in /bin (change BINDIR in Makefile if you want to 
	    install elsewhere).
	    
	    (Stuart's NOTE: dialog now installs into /bin because
	    that's where it goes on Slackware.)

        7.  'make install.man' will install the man page to
            /usr/local/man (change MANDIR in Makefile if you want to
            install elsewhere).

        8.  You can then try the sample shell scripts in the samples
            directory (make sure the environment variable DIALOG is
            not set, the scripts use it to find the dialog binary, if
            it's not set, "../src/dialog" will be used).

	9.  Don't forget to mail me (mail address at end of this file)
            if you find any bugs, have some good color settings to
            contribute or just want to tell me that you like it, Don't
            mail me if you don't like it :-)



RUN-TIME CONFIGURATION
----------------------

	1.  Create a sample configuration file by typing:

                "dialog --create-rc <file>"

        2.  At start, 'dialog' determines the settings to use as follows:

              a)  if environment variable DIALOGRC is set, it's value
                  determines the name of the configuration file.

              b)  if the file in (a) can't be found, use the file
                  $HOME/.dialogrc as the configuration file.

              c)  if the file in (b) can't be found, use compiled in
                  defaults.

	3.  Edit the sample configuration file and copy it to some place
            that 'dialog' can find, as stated in step 2 above.




Comments and bug reports welcome.

- Savio Lam (lam836@cs.cuhk.hk)
