mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
from __future__ import annotations
|
|
|
|
from pwndbg.color import theme
|
|
|
|
offset_color = theme.add_color_param(
|
|
"telescope-offset-color", "normal", "color of the telescope command (offset prefix)"
|
|
)
|
|
register_color = theme.add_color_param(
|
|
"telescope-register-color", "bold", "color of the telescope command (register)"
|
|
)
|
|
offset_separator_color = theme.add_color_param(
|
|
"telescope-offset-separator-color",
|
|
"normal",
|
|
"color of the telescope command (offset separator)",
|
|
)
|
|
offset_delimiter_color = theme.add_color_param(
|
|
"telescope-offset-delimiter-color",
|
|
"normal",
|
|
"color of the telescope command (offset delimiter)",
|
|
)
|
|
repeating_marker_color = theme.add_color_param(
|
|
"telescope-repeating-marker-color",
|
|
"normal",
|
|
"color of the telescope command (repeating values marker)",
|
|
)
|
|
|
|
|
|
def offset(x: object) -> str:
|
|
return offset_color.color_function(x)
|
|
|
|
|
|
def register(x: object) -> str:
|
|
return register_color.color_function(x)
|
|
|
|
|
|
def separator(x: object) -> str:
|
|
return offset_separator_color.color_function(x)
|
|
|
|
|
|
def delimiter(x: object) -> str:
|
|
return offset_delimiter_color.color_function(x)
|
|
|
|
|
|
def repeating_marker(x: object) -> str:
|
|
return repeating_marker_color.color_function(x)
|