comment -*- mode: text; tab-width:2; indent-tabs-mode:nil -*-

Memo about WIN32 native GUI.

* Tested environments.
  Windows 8 + MSYS2 2.10.0 or Cygwin 2.11.1
            + libssh2 1.8.0(win32 native)
            + Fribidi 0.19.2(win32 native)

* Build
  (PKG_CONFIG=i686-w64-mingw32-pkg-config CC=i686-pc-mingw32-gcc) ./configure \
      (--enable-ssh2) (--with-gui=win32) (--config-cache) (--prefix=) \
      (--with-libintl-prefix=[GTK+(win32) installed directory]) \
      (--with-libiconv-prefix=[GTK+(win32) installed directory])
  make
  (DESTDIR=/foo/bar) make install

  If 'make install' fails, copy these files to a directory where you want to
  install mlterm.
  baselib/src/.libs/*.dll
  encodefilter/src/.libs/*.dll
  encodefilter/module/.libs/*.dll
  vtemu/.libs/*.dll
  vtemu/libctl/.libs/*.dll
  main/.libs/mlterm.exe
  scrollbar/sample/.libs/*.dll
  inputmethod/kbd/.libs/*.dll
  libind/.libs/*.dll
  tool/mlimgloader/.libs/mlimgloader.exe

  o (Built with MinGW)
    If you build mlterm without libssh2 (--enable-ssh2 configure option),
    copy win32/plink/plink.exe which mlterm uses to connect remote host.
  o (Built with MSYS or cygwin)
    Copy tool/mlclient/mlclient.exe and contrib/tool/mlcc/mlcc.exe.
  o If you can build mlconfig and mlterm-menu which require GTK+ >= 2.0,
    copy tool/mlconfig/.libs/mlconfig.exe and
    contrib/tool/mlterm-menu/.libs/mlterm-menu.exe, too.

* Configuration
  (Built with MSYS-DTK or MSYS2 or Cygwin)
  Place configuration files in SYSCONFDIR/mlterm and each user's $HOME/.mlterm/
  directory.
  
  (Built with MinGW or Cygwin(gcc -mno-cygwin, i686-pc-mingw32-gcc etc))
  Place configuration files in [Mlterm installed directory]\mlterm\ and
  each user's %HOMEPATH%\mlterm\ or %HOME%\.mlterm\ directory.

  (Font Configuration)
  Format of font,vfont,tfont is as follows.
  [font family]( Bold Italic [font size]:[percentage])

  Unlike aafont for cairo and xft, it is not necessary to escape '-' character
  by '\' in [font family] string.

  aafont, vaafont, taafont files are not used.

  (Encoding)
  If -E/--km/encoding option is "AUTO" or not specified, encoding of mlterm
  is set as follows.
  Built with MSYS-DTK or MSYS2 or Cygwin => UTF-8
  Built with MinGW or Cygwin(gcc -mno-cygwin, i686-pc-mingw32-gcc etc)
    => Conforming with windows codepage.
  
* Start
  (Built with MSYS-DTK or MSYS2 or Cygwin)
  set HOME=c:\msys\...\home\...
  set CYGWIN=tty
  mlterm.exe (options...) -e /bin/sh --login -i

  (Built with MinGW or Cygwin(gcc -mno-cygwin, i686-pc-mingw32-gcc etc))
  set HOMEPATH=...
  mlterm.exe (options...) (-e plink.exe [-telnet/-ssh/-rlogin/-raw] [host])

  If -e option is not specified, a dialog window which decides server to connect
  is shown. (Note that if you don't input password to the dialog, mlterm tries
  agent authentication.)
  You can specify following options which customize a dialog in ~/.mlterm/main file.
  o default_server(--serv) = (<protocol>://)(<user>@)<server>(:<port>)(:<encoding>)
  o If you start mlterm with --serv=? option on Cygwin or MSYS, servman which
    manages the list of servers opens.
    On MinGW, servman opens if you start mlterm without --serv option.
  o always_show_dialog(--dialog) = true/false

* Caution
  o -I/--icon, --iconpath, -Y/--decsp, -&/--borderless, -d/--display and
    -t/--transbg options are not available.
  o 'genuine' of daemon mode is not supported in MSYS-DTK or MSYS2 or Cygwin
    version. Daemon mode itself is not supported in MinGW version. Instead,
    "\x1b]5379;mlclient <prefix opitions> <options>\x07" sequence (which
    mlclient or mlclientx command supports) is avaiable. (see doc/en/PROTOCOL).
  o Supported scrollbars are "simple" and "sample" alone.
  o Only "mlclient" command is available for "exesel:..." operation in
    ~/.mlterm/key in MinGW.
  o In order to show DEC SPECIAL characters, it is necessary to install
    "Tera Special" font (TSPECIAL1.TTF) which is a part of Tera Term
    (http://teraterm.sourceforge.jp/).
  o Cygwin/X 1.17 or later doesn't listen tcp connection (127.0.0.1:6000) by default.
    Start X server as follows to enable mlterm (built with MinGW) to connect to
    X server.
    $ startxwin -- :0 -listen tcp &

* Executable binaries
  http://mlterm.sf.net/bin.html
