``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)
| 1141 | |
| 1142 | |
| 1143 | def 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 | |
| 1166 | def get_int_input(prompt, title): |
no outgoing calls
no test coverage detected