from twitter.stream import TwitterStream, Timeout, HeartbeatTimeout, Hangup
from twitter.api import *
from twitter.stream import TwitterStream, Timeout, HeartbeatTimeout, Hangup
from twitter.api import *
name = '@' + t.account.verify_credentials()['screen_name']
g['original_name'] = name[1:]
g['decorated_name'] = color_func(c['DECORATED_NAME'])('[' + name + ']: ')
name = '@' + t.account.verify_credentials()['screen_name']
g['original_name'] = name[1:]
g['decorated_name'] = color_func(c['DECORATED_NAME'])('[' + name + ']: ')
# Theme init
files = os.listdir(os.path.dirname(__file__) + '/colorset')
themes = [f.split('.')[0] for f in files if f.split('.')[-1] == 'json']
g['themes'] = themes
db.theme_store(c['THEME'])
# Theme init
files = os.listdir(os.path.dirname(__file__) + '/colorset')
themes = [f.split('.')[0] for f in files if f.split('.')[-1] == 'json']
g['themes'] = themes
db.theme_store(c['THEME'])
usage += s + 'Any update from Twitter will show up ' + \
light_yellow('immediately') + '.\n'
usage += s + 'In addtion, following commands are available right now:\n'
usage += s + 'Any update from Twitter will show up ' + \
light_yellow('immediately') + '.\n'
usage += s + 'In addtion, following commands are available right now:\n'
' will show help for list commands.\n'
usage += s * 2 + light_green('h stream') + \
' will show help for stream commands.\n'
' will show help for list commands.\n'
usage += s * 2 + light_green('h stream') + \
' will show help for stream commands.\n'
'will be evaluate by Python interpreter.\n'
usage += s * 2 + 'Even ' + light_green('cal') + ' will show the calendar' + \
' for current month.\n'
'will be evaluate by Python interpreter.\n'
usage += s * 2 + 'Even ' + light_green('cal') + ' will show the calendar' + \
' for current month.\n'
light_green('config ASCII_ART = False') + ' will set value of ' + \
light_yellow('ASCII_ART') + ' config key to ' + \
light_yellow('False') + '.\n'
light_green('config ASCII_ART = False') + ' will set value of ' + \
light_yellow('ASCII_ART') + ' config key to ' + \
light_yellow('False') + '.\n'
# Screening
usage += '\n'
usage += s + grey(u'\u266A' + ' Screening \n')
usage += s * 2 + light_green('h') + ' will show this help again.\n'
usage += s * 2 + light_green('c') + ' will clear the screen.\n'
usage += s * 2 + light_green('q') + ' will quit.\n'
# Screening
usage += '\n'
usage += s + grey(u'\u266A' + ' Screening \n')
usage += s * 2 + light_green('h') + ' will show this help again.\n'
usage += s * 2 + light_green('c') + ' will clear the screen.\n'
usage += s * 2 + light_green('q') + ' will quit.\n'