def TERM(executable, execopt='-e', execfmt='expanded', titleopt='-T'):
    """Helper to declare a terminal in the hardcoded list"""
    if execfmt not in ('expanded', 'string'):
        raise RuntimeError('Invalid execfmt')
    fmt = executable
    if titleopt is not None:
        fmt += ' ' + titleopt + ' {title}'
    fmt += ' {} {{{}}}'.format(execopt, execfmt)
    return fmt
