def result_color( result ):
    """
    Translate the result string into a color character.  These colors must
    be known to the preample "style" list.
    """
    if result == 'pass': return 'g'
    if result == 'ran': return 'g'
    if result == 'start': return 'c'
    if result == 'notdone': return 'c'
    if result == 'diff': return 'y'
    if result == 'fail': return 'r'
    if result == 'notrun': return 'h'
    if result == 'timeout': return 'm'
    if result == 'MIA': return 'y'
    return 'w'