Преглед изворни кода

even more notices, improved guide

master
Emil Williams пре 3 месеци
родитељ
комит
42acaed4ef
No known key found for this signature in database GPG Key ID: 5432DB986FDBCF8A
2 измењених фајлова са 13 додато и 8 уклоњено
  1. +1
    -0
      client/moontalk.c
  2. +12
    -8
      client/moontalk.rb

+ 1
- 0
client/moontalk.c Прегледај датотеку

@@ -1,5 +1,6 @@
/* moontalk.c - @BAKE cc -O2 -std=gnu99 -Wall -Wextra -pedantic $@ -o $* -lncurses -ltinfo $+
* Written by Emil.
* Licensed under the GPLv3 only.
*/

#include <stdio.h>


+ 12
- 8
client/moontalk.rb Прегледај датотеку

@@ -1,7 +1,8 @@
#!/usr/bin/ruby
# written by Emil.
# Licensed under the GPLv3 only.
#
# short guide
# SHORT GUIDE
#
# -serv specifies server,
# -port specifies port,
@@ -11,13 +12,16 @@
# Type Enter and nothing else to refresh the messages.
# Type messages and send them, hopefully everyone hears you just fine.
#
# h = { "BYE" => 1, "QUIT" => 1, "SAY" => 2, "CLEAR" => 3, "NICK" => 4, "RECONNECT" => 5, "DELAY" => 6 }
# 1 exits,
# 2 says something verbatim (including a raw newline),
# 3 clears the terminal,
# 4 sets the nick (needs arg),
# 5 reconnects,
# 6 sets delays ( needs arg)
# Commands:
#
# Commands must be near the beginning of messages, and will preform their respective action.
#
# BYE, QUIT - exits
# SAY - says something verbatim
# CLEAR - clears the terminal
# NICK... - sets the nick
# RECONNECT - reconnects
# DELAY... - sets delays

require 'socket'
require 'readline'


Loading…
Откажи
Сачувај