X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Frainbow.py;h=bfca0fde62db5167760b2cc7f514a756b9845b50;hp=08cdcb7409cac73a65a3c2486fa138af92ce6678;hb=aa452ee997fb704cf144fe56e1abd59b4f639ddb;hpb=d133c128e25a6bc77c1440f672de0ca2cc6f6620 diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 08cdcb7..bfca0fd 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1723,6 +1723,7 @@ def listen(): try: # raw_input if g['prefix']: + # Only use PREFIX as a string with raw_input line = raw_input(g['decorated_name'](g['PREFIX'])) else: line = raw_input() @@ -1807,7 +1808,7 @@ def stream(domain, args, name='Rainbow Stream'): light_green("h stream") + \ light_magenta(" for more details.") printNicely(guide) - sys.stdout.write(g['decorated_name'](g['PREFIX'])) + sys.stdout.write(g['decorated_name'](c['PREFIX'])) sys.stdout.flush() StreamLock.release() break @@ -1835,10 +1836,10 @@ def stream(domain, args, name='Rainbow Stream'): # the 1st character of that word if current_buffer and g['cmd'] != current_buffer: sys.stdout.write( - g['decorated_name'](g['PREFIX']) + str2u(current_buffer)) + g['decorated_name'](c['PREFIX']) + str2u(current_buffer)) sys.stdout.flush() elif not c['HIDE_PROMPT']: - sys.stdout.write(g['decorated_name'](g['PREFIX'])) + sys.stdout.write(g['decorated_name'](c['PREFIX'])) sys.stdout.flush() elif tweet.get('direct_message'): # Check the semaphore pause and lock (stream process only)