From: vunhat_minh Date: Fri, 30 May 2014 09:12:52 +0000 (+0900) Subject: screen support X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=commitdiff_plain;h=fef2b9402e3f2bf3189e760911875e2073a33071 screen support --- diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 282437b..d1a794e 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -504,3 +504,10 @@ def fly(): g['reset'] = True g['stream_pid'] = p.pid listen() + + +def multiplexer(): + """ + Multiplexer + """ + os.system('screen -S rainbow fly') diff --git a/setup.py b/setup.py index bf81013..7755cdd 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,7 @@ setup(name='rainbowstream', entry_points=""" # -*- Entry points: -*- [console_scripts] - rainbow=rainbowstream.rainbow:fly + fly=rainbowstream.rainbow:fly + rainbow=rainbowstream.rainbow:multiplexer """, )