NAME

tcc - Terminal CyanChat Client

USAGE

tcc [--server --host --port --monochrome]

DESCRIPTION

This is a demonstration script for a CyanChat client program. It runs at the command line using only ASCII characters and ANSI color codes (no toolkits like Curses are necessary).

It clears the screen on each refresh which might cause some flickering in certain terminal emulators. It has its problems but the point is it's just some code to demonstrate how to use Net::CyanChat as a client module.

REQUIREMENTS

Term::ReadKey
Getopt::Long
Win32::Console::ANSI (optional)

Win32::Console::ANSI is only necessary when running this script under MS Windows, but is optional. If the module can't be loaded, the script defaults to monochrome mode (which isn't nearly as pretty).

OPTIONS

From tcc --help:

--server <hostname>[:port]
-s <hostname>[:port]
  Define the hostname and port of the CyanChat server to connect to.
  Given only a hostname, port defaults to 1812. The default hostname
  is "cho.cyan.com".
  Ex: --server cho.cyan.com:1813
      --server cho.cyan.com

--host <hostname>
-h <hostname>
  Define the hostname of the CyanChat server to connect to.
  The default is "cho.cyan.com".
  Ex: --host cho.cyan.com

--port <port>
-p <port>
  Define the port that the CyanChat server is listening on. The default
  is to use port 1812.
  Ex: --port 1812

--monochrome
--mono
-m
  Use this flag to disable the ANSI color codes. Not all terminal emulators
  support ANSI colors. If your terminal has trouble displaying the program
  normally, use the --monochrome option.

--help
-h
-?
  Show this document.

AUTHOR

Noah Petherbridge -- Same guy who wrote Net::CyanChat.

LICENSE

Released under the same terms as Net::CyanChat.