MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / get_text_line_input

Function get_text_line_input

python/interaction.py:1143–1163  ·  view source on GitHub ↗

``get_text_line_input`` prompts the user to input a string with the given prompt and title .. note:: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line \ a simple text prompt is used. :param str prompt: String to prompt with :param st

(prompt, title)

Source from the content-addressed store, hash-verified

1141
1142
1143def get_text_line_input(prompt, title):
1144 """
1145 ``get_text_line_input`` prompts the user to input a string with the given prompt and title
1146
1147 .. note:: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line \
1148 a simple text prompt is used.
1149
1150 :param str prompt: String to prompt with
1151 :param str title: Title of the window when executed in the UI
1152 :rtype: str containing the input without trailing newline character
1153 :Example:
1154 >>> get_text_line_input("PROMPT>", "getinfo")
1155 PROMPT> Input!
1156 'Input!'
1157 """
1158 value = ctypes.c_char_p()
1159 if not core.BNGetTextLineInput(value, prompt, title):
1160 return None
1161 result = value.value
1162 core.free_string(value)
1163 return result
1164
1165
1166def get_int_input(prompt, title):

Callers 4

actionMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected