c['DECORATED_NAME'])(
'[' + x + ']: ')
printNicely(green('Theme changed.'))
- except Exception as e:
- print(e)
+ except:
printNicely(red('No such theme exists.'))
line = raw_input()
# Save previous cmd in order to compare with readline buffer
g['previous_cmd'] = line.strip()
+ # Get short cmd to filter
try:
cmd = line.split()[0]
except:
cmd = ''
- g['cmd'] = cmd
+ # Save whold the entire cmd
+ g['cmd'] = line
try:
# Lock the semaphore
c['lock'] = True