even more notices, improved guide

This commit is contained in:
Emil Williams 2024-02-03 17:55:38 +00:00
parent 9b38539e59
commit 42acaed4ef
No known key found for this signature in database
GPG Key ID: 5432DB986FDBCF8A
2 changed files with 13 additions and 8 deletions

View File

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

View File

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