 
  Tested CCE 0.50 on FreeBSD 4.3-RELEASE, FreeBSD 4.9RC1(Intel) and 5.1(Intel),
  frame buffer mode, LRMI & Direct VGA mode, also in X11 mode(through GGI/SDL).

 1. How to install CCE on FreeBSD

   ./configure [--enable-fb --enable-mouse]  (fb/mouse is turned on by default)
   make
   make install

   CCE now fully supports FreeBSD's frame buffer feature, you can use
   frame buffer from 640x480x4 to 1280x1024x32(as long as your video card
   supports it). You need to load the VESA module(or recompile kernel with
   VESA support) in order to use the VESA video modes.

       kldload vesa       // load FreeBSD VESA kernel module
       vidmode -i mode    // will show you available video modes 

   You can change cce.cfg's FreeBSDFrameBuffer option to use a specific
   video mode. By default, CCE will try to use 800x600x16 colors mode if 
   it's supported, otherwise it'll use 640x480x16 colors mode.

   How to check if you have the VGA 640x480x4(16 colors) graphics mode?
   try 'vidcontrol -i mode', look for "G 640x480x4"
   If you have this one, at least you can run CCE in 640x480 mode.

   ./configure [--enable-mouse] 
   make
   make install

   To use 640x480x16 colors VGA mode(almost all video cards support it)
   However, this configuration operates VGA registers directly, so it
   may have compatibility problem, please try to use FreeBSD's fb above.
   
   You can try to enable 800x600 console(16 colors, raster mode):
      kldload vesa                       // load VESA kernel module
      vidcontrol -g 100x37 VESA_800x600  // switch mode, 100x37 text    
   
   If it fails, please follow the instruction below to recompile the FreeBSD 
   kernel.

   You can also run CCE in X Windows through GGI or SDL library, just do:
     ./configure --enable-ggi  or --enable-sdl

  
 2. How to input Chinese in bash/vi

   If you can't input Chinese in bash, put these lines to your 
   /etc/profile or .profile

    bind 'set convert-meta off'
    bind 'set meta-flag on'
    bind 'set output-meta on'

    Try 'stty pass8' too.

    If your vi can't display Chinese(instead, showing something like \xx\xx),
    please try to set LC_CTYPE to "en_US.ISO8859-1"


 3. Mouse support (special thanks to 'statue')
 
   try 'man moused', make sure you have mouse support in text console
   For example, if you are using PS/2 mouse, you should run/have
   
   moused -t auto -p /dev/psm0

   CCE will try to open /dev/sysmouse for the 'virutualized moused driver'
   Please modify the cce.cfg(a sampel is name cce.cfg.FreeBSD)
   (NOTE: please put a TAB before the MouseSystems and /dev/sysmouse)
   
     Mouse:
         MouseSystems
     MouseDev:
	     /dev/sysmouse

 4. How to recompile FreeBSD kernel with VESA and raster support

  If you are using VGA 640x480x16 colors mode, probably you don't need the
  the VESA driver, so you don't have to recompile the FreeBSD kernel.

  If you want to use the VESA support(with more graphics modes), you can
  use the kernel loadable module vesa.ko or recompile the kernel.

   kldload vesa
   vidcontrol -i mode (display all the modes)
   vidcontrol show  (show the current mode's colors, etc)

   cd /usr/src/sys/i386/conf
   cp GENERIC MYKERNEL
   add two lines to MYKERNEL:
        options VESA
 	options SC_PIXEL_MODE (This is console driver syscons's options)
   NOTE: SC_PIXEL_MODE adds support for pixel(raster) mode console. This mode
   is useful on some laptop computers, but less so on most other systesm, and
   it adds substantial amout of code to syscons. It supports the VESA800x600
   mode.

   If you are using a two button mouse, add
        options SC_TWOBUTTON_MOUSE  (sc also handles mouse styff)

   config MYKERNEL
   cd ../compile/MYKERNEL  (or ../../compile/MYKERNEL)
   make depend
   make
   make install

   Then reboot, now you have the VESA and raster console support.
   vidcontrol -i mode | more    will display lots of video formats
   vidcontrol -g 100x37 VESA_800x600  (fonts look better in this mode)

   btw: Without SC_PIXEL_MODE support, you can only use TEXT video mode
   in console, all those VESA_800x600 will fail. However, you can use
   vidcontrol 80x60/80x43/80x50/80x25/132x43 etc to switch to different
   text mode(but most of them are ugly!) 

   Default 80x25 VGA console (Text only, video mode 24, 640x480x16 colors)
   VESA_800x600 is 800x600x4(16 colors), video mode 258, using 8x16 fonts


