tcc - Terminal CyanChat Client
tcc [--server --host --port --monochrome]
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.
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).
Win32::Console::ANSI
From tcc --help:
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.
Noah Petherbridge -- Same guy who wrote Net::CyanChat.
Released under the same terms as Net::CyanChat.
To install Net::CyanChat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::CyanChat
CPAN shell
perl -MCPAN -e shell install Net::CyanChat
For more information on module installation, please visit the detailed CPAN module installation guide.