diff --git a/.gitattributes b/.gitattributes index fcadb2c..90eaec1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ * text eol=lf + +*.png binary diff --git a/README.md b/README.md index 0f00c9c..b4e1452 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ * MIT-Licensed, 2018-01-07, ed @ irc.rizon.net * https://github.com/9001/r0c +![screenshot of telnet connected to a r0c server](doc/r0c.png) + ## features * tries to be irssi diff --git a/doc/r0c.png b/doc/r0c.png new file mode 100644 index 0000000..009bbba Binary files /dev/null and b/doc/r0c.png differ diff --git a/r0c/config.py b/r0c/config.py index 0c3e90a..c57a4d8 100644 --- a/r0c/config.py +++ b/r0c/config.py @@ -2,29 +2,38 @@ if __name__ == '__main__': raise RuntimeError('\r\n{0}\r\n\r\n this file is part of retr0chat.\r\n enter the parent folder of this file and run:\r\n\r\n python -m r0c \r\n\r\n{0}'.format('*'*72)) +BUILD_DATE = '2018-01-16' # felt like a good idea at the time + # two example values are listed for each config attribute; # the first for debug purposes, the second for regular use +# show negotiations etc DBG = True DBG = False +# show all traffic from clients HEXDUMP_IN = True HEXDUMP_IN = False +# show all traffic to clients HEXDUMP_OUT = True HEXDUMP_OUT = False +# filter packets larger than N bytes from being hexdumped HEXDUMP_TRUNC = 65535 HEXDUMP_TRUNC = 128 +# set true for a really bad "slow network" simulation SLOW_MOTION_TX = True SLOW_MOTION_TX = False +# force clients into linemode (to debug linemode UI) FORCE_LINEMODE = True FORCE_LINEMODE = False +# dump statistics every 2 seconds BENCHMARK = True #BENCHMARK = False +# width of the hexdump, in bytes per line HEX_WIDTH = 16 - diff --git a/r0c/user.py b/r0c/user.py index e824aae..eeecd02 100644 --- a/r0c/user.py +++ b/r0c/user.py @@ -99,7 +99,7 @@ class User(object): `1;30m\\ `0;36m| `1m\\_/ `0;36m\\__ `1;30m/ `0;36m------b. build_date `0m """ - text = text.replace(u'`', u'\033[').replace('build_date', '2018-01-15') + text = text.replace(u'`', u'\033[').replace('build_date', BUILD_DATE) text += u""" Useful commands: