'Display various information of current execution context
Usage:
MYNAME [reg,code,stack,all] [code/stack length]'

def context(self, *arg):

    (opt, count) = normalize_argv(arg, 2)
    if (to_int(count) is None):
        count = 8
    if (opt is None):
        opt = config.Option.get('context')
    if (opt == 'all'):
        opt = 'register,code,stack'
    opt = opt.replace('    ', '').split(',')
    if (not opt):
        return
    if (not self._is_running()):
        return
    clearscr = config.Option.get('clearscr')
    if (clearscr == 'on'):
        clearscreen()
    status = peda.get_status()
    if (('reg' in opt) or ('register' in opt)):
        self.context_register()
    if ('code' in opt):
        self.context_code(count)
    if (('stack' in opt) or ('SIGSEGV' in status)):
        self.context_stack(count)
    msg(('[%s]' % ('-' * 78)), 'blue')
    msg(('Legend:    %s,    %s,    %s,    value' % (red('code'), blue('data'), green('rodata'))))
    if ('SIG' in status):
        msg(('Stopped    reason:    %s' % red(status)))
    return
