 
  Tested on Apple Darwin 7.0.1 PowerPC(iBook G3 900Mhz, PowerPC 750) and x86.
  Also on Darwin 7.2.0(Mac OS X 10.3.2)'s console mode, OpenDarwin 6.6.2(x86, tcsh).

  KNOWN PROBLEMS:
  1) Mouse is not supported yet. 
  2) Only Darwin's framebuffer mode is supported. For x86, you can let
     "Boot Graphics"="No" to enable VGA text console(640x480x16 colors).
  3) In Mac OS X's Darwin console mode, after you leave CCE, can't go back
     to text console mode? You need to type exit or Ctrl-D blindly to leave :)
     Looks like shell is still getting input, but framebuffer is not outputing
	 anything?


 1. How to install CCE in Darwin ?

   CCE supports Darwin's framebuffer through IOKit(both x86 and PowerPC).
   
   ./configure 
   make
   make install

  If you want to run it in Mac OS X's Darwin console mode(full screen), you need
  to do 'configure --disable-sdl', otherwise CCE will still start through SDL.

  Use Ctrl-Q as command prefix

    Ctrl-q SPACE    switch between Chinese/English input
    Ctrl-q .        switch between Chinese/English punctuation
    Ctrl-q w        switch between full-width and half-width
    Ctrl-q a        Add a new window
    Ctrl-q n        switch to Next window
    Ctrl-q p        switch to Previous window
    Ctrl-q x        eXit a window
    Ctrl-q r        Repaint the whole window
    Ctrl-q l        enable/dissable LianXiang
    Ctrl-q k        change the Keyboard map
    Ctrl-q 0-9      switch to input method 0-9

  man cce and cceconv for some more information. 


 2. How to input Chinese in bash

   By default, Mac OS X will have a few shells available in /bin (bash, tcsh, zsh, csh),
   check the size of /bin/sh to see which one you are using(default is bash for Darwin 7.x).
   
   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'

    If your telnet's Chinese is not working, try 'telnet -8'.


 3. How to change Darwin/x86's screen resolution?

     For Apple's Darwin 7.x: Darwin's System Configuration File at
	 /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
	 (XML file)

	 Default is 1024x768x555  (16bpp) for i386
	 
	 <key>Graphics Mode</key>
	 <string>1024x768x888</string>  (32bpp)
	 
	 or: 1024x768x16 (16 colors) 800x600x256(256 colors) 
	 
     Darwin/x86's screen resolution is set by booter using VESA BIOS calls, so
	 you can't change it later(unlike Darwin/ppc), there will be only one display 
	 mode available.
	 
     If you are using OpenDarwin 6.6.2(or older version), please modify
	   /private/Drivers/i386/System.config/Default.table (text file)
	 
	 BTW: If you feel Darwin's console is kind of slow, you can enable telnet in 
	 /etc/xinetd.d/telnet, then telnet to Darwin.
 

 4. How to install Darwin distributions?

    A few distributions:
	http://developer.apple.com/darwin     Latest Darwin ISO available from Apple
	http://www.opendarwin.com             Darwin ISO also available
	http://www.gnu-darwin.org             GNU-Darwin, combination of GNU and Darwin, old?

    For older Darwin/x86, it needs a smaller booter partition(at least 1MB, type 0xAB) and
	a large Darwin root partition(UFS, type 0xA8, say 2GB). It's better to use primary 
	partitions for both(I tried putting either booter or root partition on logical partition 
	and failed).
	
	For newer Darwin/x86(Darwin 7.x), only one UFS partition is necessary, booter will also
	be installed to this partition. Probably you can even use logical partition(I haven't try
	though).
	
	For Darwin/ppc, yaboot can boot Mac OS 9/X, Darwin, *BSD and Linux. yaboot also
	needs a 1MB partition to store the boot loader. Darwin can use hfs+ or ufs as 
	the root partition.

    I used Apple's Darwin 7.0.1 CD ISO(Nov 14, 2003 released), it can dual-boot 
	for PowerPC and x86. x86 hardware support is very limited:
	  PIIX4 IDE controller, Intel 8255x & 3Com 905cXXX Ethernet controller
	  VESA 2.0 compliant video card.

   
   btw: SDL doesn't support "pure" Darwin(without Mac OS X's Cocoa).
 
