Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zfletch/ncurses-chat-rb
Chat server and client using ncurses in ruby
https://github.com/zfletch/ncurses-chat-rb
Last synced: 6 days ago
JSON representation
Chat server and client using ncurses in ruby
- Host: GitHub
- URL: https://github.com/zfletch/ncurses-chat-rb
- Owner: zfletch
- License: gpl-3.0
- Created: 2013-08-08T01:44:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-13T18:30:26.000Z (about 11 years ago)
- Last Synced: 2024-08-06T03:05:52.268Z (3 months ago)
- Language: Ruby
- Size: 777 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ncurses chat
============Chat server and client using ncurses in ruby.
Description
-----------Simple chat server, client, and ncurses client
written in ruby using the ruby-ncurses library.The basic setup: starting a server creates a chat room
that clients can connect to.
The server and clients use TCP Sockets to communicate.
The clients can send commands to the server
to op other clients, private message other clients,
add a password to the room, and some other things
clients can usually do in group chat programs.If someone out there is looking for some code examples
for using ncurses-ruby or for making a simple chat program,
I hope this code will come in handy.How to use
----------- gem install ncurses-ruby
- git clone https://github.com/zfletch/ncurses-chat-rb
- cd ncurses-chat-rb
- ruby server.rb
- (in another terminal window) ruby nclient.rb
- type '/help' in the client to see a list of commandsExamples
--------Simple example of multiple users using the chat.
![simple](https://github.com/zfletch/ncurses-chat-rb/blob/master/pictures/simple.png?raw=true)Slightly more complicated example using the guardian.rb script
to create a bot that sits in the room and ops people who
message it the password.
![guardian](https://github.com/zfletch/ncurses-chat-rb/blob/master/pictures/guardian.png?raw=true)Notes
-----Tested on ruby 2.0.0 on OSX 10.8.4.