def set_color(cls, ea, none):
'''Removes the color of the basic-block at address ``ea``.'''
res, fn, bb = cls.get_color(ea), by_address(ea), cls.id(ea)
try: idaapi.clr_node_info2(fn.startEA, bb, idaapi.NIF_BG_COLOR | idaapi.NIF_FRAME_COLOR)
finally: idaapi.refresh_idaview_anyway()
# clear the color of each item too.
for ea in block.iterate(ea):
database.set_color(ea, None)
# internal.netnode.alt.remove(ea, 0x14)
return res
评论列表
文章目录