From: vunhat_minh Date: Thu, 23 Oct 2014 03:01:31 +0000 (+0900) Subject: cleanup PR 70 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=806f42dfbadeee973969533cb3d34451f6cbdd13;p=rainbowstream.git cleanup PR 70 --- diff --git a/docs/index.rst b/docs/index.rst index 865af09..76167ed 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -268,6 +268,8 @@ Here is full list of supported command: - ``c`` will clear the screen. +- ``v`` will show version info. + - ``q`` will quit. Theme customization diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 284a628..48f207f 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -179,7 +179,10 @@ def upgrade_center(): notice += light_green('pip install -U rainbowstream') printNicely(notice) else: - printNicely(yellow('You are running latest ' + current + ' version.')) + notice = light_yellow('You are running latest version (') + notice += light_green(current) + notice += light_yellow(')') + printNicely(notice) except: pass @@ -1662,6 +1665,7 @@ def help(): usage += s * 2 + light_green('p') + ' will pause the stream.\n' usage += s * 2 + light_green('r') + ' will unpause the stream.\n' usage += s * 2 + light_green('c') + ' will clear the screen.\n' + usage += s * 2 + light_green('v') + ' will show version info.\n' usage += s * 2 + light_green('q') + ' will quit.\n' # End usage += '\n' @@ -1780,8 +1784,8 @@ cmdset = [ 'p', 'r', 'c', + 'v', 'q', - 'version', ] # Handle function set @@ -1827,8 +1831,8 @@ funcset = [ pause, replay, clear, - quit, upgrade_center, + quit, ] @@ -1906,8 +1910,8 @@ def listen(): [], # pause [], # reconnect [], # clear - [], # quit [], # version + [], # quit ] )) init_interactive_shell(d)