# built documents.
#
# The short X.Y version.
-version = '0.8.3'
+version = '0.8.4'
# The full version, including alpha/beta/rc tags.
-release = '0.8.3'
+release = '0.8.4'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
c = code
if bold:
c = "1;%s" % c
- return "\033[%sm%s\033[0m" % (c, text)
+ return "\001\033[%sm\002%s\001\033[0m\002" % (c, text)
return inner
"""
def inner(text):
c = code
- return "\033[38;5;%sm%s\033[0m" % (c, text)
+ return "\001\033[38;5;%sm\002%s\001\033[0m\002" % (c, text)
return inner
Init the rainbow shell
"""
readline.set_completer(RainbowCompleter(d).complete)
- readline.parse_and_bind('set editing-mode vi')
- readline.parse_and_bind('set show-all-if-ambiguous on')
- readline.parse_and_bind('set show-all-if-unmodified on')
readline.parse_and_bind('set skip-completed-text on')
if 'libedit' in readline.__doc__:
readline.parse_and_bind("bind ^I rl_complete")
read_history()
reset()
while True:
- # raw_input
- if g['prefix']:
- line = raw_input(g['decorated_name'](c['PREFIX']))
- else:
- line = raw_input()
- # Save cmd to compare with readline buffer
- g['cmd'] = line.strip()
- # Get short cmd to pass to handle function
- try:
- cmd = line.split()[0]
- except:
- cmd = ''
try:
+ # raw_input
+ if g['prefix']:
+ line = raw_input(g['decorated_name'](c['PREFIX']))
+ else:
+ line = raw_input()
+ # Save cmd to compare with readline buffer
+ g['cmd'] = line.strip()
+ # Get short cmd to pass to handle function
+ try:
+ cmd = line.split()[0]
+ except:
+ cmd = ''
# Lock the semaphore
c['lock'] = True
# Save cmd to global variable and call process
g['prefix'] = True
# Release the semaphore lock
c['lock'] = False
+ except EOFError:
+ printNicely('')
except Exception:
printNicely(red('OMG something is wrong with Twitter right now.'))
import os.path
# Bumped version
-version = '0.8.3'
+version = '0.8.4'
# Require
install_requires = [