View Single Post
Old 05-08-2013, 11:29 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post accidental IRC - A native command line IRC client.

I'm gonna rework this to be an extension.

but for right now you just get the binary.

All credits for this go to neutrak. he wrote it. in entirety.

will update this will the thing RSN

Compiled for: ALL KINDLES.


MAN:

Quote:
ACCIRC

Section: User Commands (1)
Updated: 24 Feb 2013
Index
NAME

accirc - The accidental ncurses irc client
SYNOPSIS

accirc [ --help | --version ]
DESCRIPTION

accirc starts ncurses; functionality is available from there; config is read from ~/.config/accirc/config.rc ; logs are stored in ~/.local/share/accirc/logs/

(Which is /var/tmp/ by default)

Options

--help
tells you to read this man page
--version
outputs the version of this software, in the form <major int>.<minor int>; major counts redesigns, minor counts updates; for both, even numbers are stable, odd numbers are unstable/testing

Commands

\
escapes the first character of the input string (in case you want a literal : or /)

:
sends raw data to the current server (if there is one)

/connect host port
connects to an irc server at <host> on port <port>

/exit [ message ]
sends a QUIT to every irc server you're connected to

/cli_escape new
changes the client command escape character to <new>, if possible

/ser_escape new
changes the server raw data escape character to <new>, if possible

/reconnect
reconnect to the currently selected server if connection is lost for any reason

/no_reconnect
don't reconnect to the currently selected server

/log
keep logs for the currently selected server (this is the default)

/no_log
don't keep logs for the currently selected server

/sl
sets active server one left of current server

/sr
sets active server one right of current server

/cl
sets active channel one left of current channel

/cr
sets active channel one right of current channel

/me
sends CTCP ACTION message

/r
replies (by privmsg) to the last user we recieved a PM from on the currently selected server; if we have never gotten a PM, the default nick to reply to is the null string ""; parsing in some server implementations may treat this strangely, but it's out of my hands, the client will act as intended and send a "privmsg nick :msg" to the server

/sleep seconds
sleeps a given number of seconds

/usleep microseconds
sleeps a given number of microseconds

/comment
ignore this line, a comment (for an rc file)

/autojoin channel
join this channel on the current server as soon as we can (for an rc file)

/autoident password
auth for this nick on the current server as soon as we can (for an rc file)

/fallback_nick nick
set this as the backup nick if the nick specified is taken; if this nick is also taken _ is appended until one is unclaimed or we run out of characters allowed in the nick (for an rc file)

/rejoin_on_kick
for channels on current server, rejoin when kicked

/no_rejoin_on_kick
for channels on current server, don't rejoin when kicked

Key Bindings

f1 or alt+left
channel left (see /cl)

f2 or alt+right
channel right (see /cr)

f3 or alt+up
server left (see /sl)

f4 or alt+down
server right (see /sr)

f5 or alt+tab
literal tab character (f5 left for backwards compatibility, alt+tab is recommended)

f6
0x01 character, since screen intercepts literal ^A (for manually sending CTCP messages other than ACTION); displays as a bold \ in input area

f7
0x03 character for sending MIRC colors (MIRC color support is still experimental, and requires compilation with -D MIRC_COLOR); displays as a bold in input area

<tab>
complete a nickname based on nicks in current channel

PgUp
scroll up one line in the channel scrollback, if possible

PgDn
scroll down one line in the channel scrollback, if possible

Up
scroll up one line in the input history, if possible

Down
scroll down one line in the input history, if possible

FILES

~/.config/accirc/config.rc
The startup file to run

~/.local/share/accirc/logs/
The location of all logs from all servers

~/.local/share/accirc/error_log.txt
A log of any errors that couldn't be output through ncurses

EXAMPLE RC FILE
~/.config/accirc/config.rc
/connect daemonic.foonetic.net 6667
:nick accirc_user

:user 1 2 3 4

/autojoin #faid3.0

/fallback_nick accirc_user

/rejoin_on_kick

BUGS

MIRC colors don't work under screen; auto-reconnecting on drop is unreliable; flicker occurs frequently, since the clock updates every second (this is less noticable in screen or tmux for some reason)


WWW
http://somegenericsite.dyndns.org/index.php?p=code
CHANGELOG: V2

writes to stderr rather than physical file for errors...

V4... SSL support! sweeeeet.

The attached binary here will run on the kindle3 too
Attached Thumbnails
Click image for larger version

Name:	Selection_498.png
Views:	1144
Size:	48.9 KB
ID:	105613  
Attached Files
File Type: zip accirc.zip (23.6 KB, 548 views)

Last edited by twobob; 09-21-2013 at 08:56 PM.
twobob is offline   Reply With Quote