mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
restored bold on questions to users (calls from readInput()) - issue #77
This commit is contained in:
parent
247f95e051
commit
4e64c1126d
|
@ -702,8 +702,11 @@ def setColor(message, bold=False):
|
|||
if level:
|
||||
kb.currentMessage = level
|
||||
|
||||
if hasattr(LOGGER_HANDLER, "level_map") and hasattr(kb, "currentMessage") and kb.currentMessage:
|
||||
if bold:
|
||||
retVal = colored(message, color=None, on_color=None, attrs=("bold",))
|
||||
elif hasattr(LOGGER_HANDLER, "level_map") and hasattr(kb, "currentMessage") and kb.currentMessage:
|
||||
_ = LOGGER_HANDLER.level_map.get(logging.getLevelName(kb.currentMessage))
|
||||
|
||||
if _:
|
||||
background, foreground, bold = _
|
||||
retVal = colored(message, color=foreground, on_color="on_%s" % background if background else None, attrs=("bold",) if bold else None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user