From fef2b9402e3f2bf3189e760911875e2073a33071 Mon Sep 17 00:00:00 2001 From: vunhat_minh Date: Fri, 30 May 2014 18:12:52 +0900 Subject: [PATCH] screen support --- rainbowstream/rainbow.py | 7 +++++++ setup.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 """, ) -- 2.25.1