def pprint_enhanced_packet(block):
    text = [col256(' Packet+ ', bg='001', fg='345'), col256(str(block.interface.options['if_name']), fg='140'), col256(str(datetime.utcfromtimestamp(block.timestamp).strftime('%Y-%m-%d %H:%M:%S')), fg='455')]
    try:
        text.extend([col256('NIC:', bold=True), col256(block.interface_id, fg='145'), col256(block.interface.options['if_name'], fg='140')])
    except KeyError:
        pass
    text.extend([col256((str(block.packet_len) + ' bytes'), fg='025')])
    if (block.captured_len != block.packet_len):
        text.extend([col256('Truncated to:', bold=True), col256((str(block.captured_len) + 'bytes'), fg='145')])
    text.extend(pprint_options(block.options))
    print(' '.join(text))
    if (block.interface.link_type == 1):
        _info = format_packet_information(block.packet_data)
        print('\n'.join((('    ' + line) for line in _info)))
    else:
        print('        Printing information for non-ethernet packets')
        print('        is not supported yet.')
def pprint_enhanced_packet(block):
    text = [col256(' Packet+ ', bg='001', fg='345'), col256(str(block.interface.options['if_name']), fg='140'), col256(str(datetime.utcfromtimestamp(block.timestamp).strftime('%Y-%m-%d %H:%M:%S')), fg='455')]
    try:
        text.extend([col256('NIC:', bold=True), col256(block.interface_id, fg='145'), col256(block.interface.options['if_name'], fg='140')])
    except KeyError:
        pass
    text.extend([col256((str(block.packet_len) + ' bytes'), fg='025')])
    if (block.captured_len != block.packet_len):
        text.extend([col256('Truncated to:', bold=True), col256((str(block.captured_len) + 'bytes'), fg='145')])
    text.extend(pprint_options(block.options))
    print(' '.join(text))
    if (block.interface.link_type == 1):
        _info = format_packet_information(block.packet_data)
        print('\n'.join((('    ' + line) for line in _info)))
    else:
        print('        Printing information for non-ethernet packets')
        print('        is not supported yet.')