screen support
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 30 May 2014 09:12:52 +0000 (18:12 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 30 May 2014 09:12:52 +0000 (18:12 +0900)
rainbowstream/rainbow.py
setup.py

index 282437b849b9e6470f8357250725493b04b27247..d1a794e4bbf7bc31b6ff75fc204eeee07327c2ba 100644 (file)
@@ -504,3 +504,10 @@ def fly():
     g['reset'] = True
     g['stream_pid'] = p.pid
     listen()
+
+
+def multiplexer():
+    """
+    Multiplexer
+    """
+    os.system('screen -S rainbow fly')    
index bf81013802c1d39bcd010bf25848dd642cc47e9b..7755cdda8380f26206620da1221b90cfb6466a01 100644 (file)
--- 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
       """,
       )