|
IDA C++ SDK 9.2
|
Command line interpreter. More...
#include <kernwin.hpp>
Public Member Functions | |
| bool (idaapi *execute_line)(const char *line) | |
| Callback: the user pressed Enter. | |
| bool (idaapi *keydown)(qstring *line | |
| Callback: a keyboard key has been pressed. | |
| bool (idaapi *find_completions)(qstrvec_t *out_completions | |
| Callback: the user pressed Tab/Shift+Tab. | |
Public Attributes | |
| size_t | size |
| size of this structure | |
| int32 | flags |
| CLI attributes | |
| const char * | sname |
| short name (displayed on the button) | |
| const char * | lname |
| long name (displayed in the menu) | |
| const char * | hint |
| hint for the input line | |
| int * | p_x |
| int int * | p_sellen |
| int int int * | p_vk_key |
| int int int int | shift |
| qstrvec_t * | out_hints |
| qstrvec_t qstrvec_t * | out_docs |
| qstrvec_t qstrvec_t int * | out_match_start |
| qstrvec_t qstrvec_t int int * | out_match_end |
| qstrvec_t qstrvec_t int int const char * | line |
| qstrvec_t qstrvec_t int int const char int | x |
Command line interpreter.
Provides functionality for the command line (located at the bottom of the main window). Only GUI version of IDA supports CLIs.
| cli_t::bool | ( | idaapi * | execute_line | ) | const |
Callback: the user pressed Enter.
CLI is free to execute the line immediately or ask for more lines.
| line | command to execute (utf-8-encoded) |
| true | executed line |
| false | ask for more lines |
| cli_t::bool | ( | idaapi * | keydown | ) |
Callback: a keyboard key has been pressed.
This callback is optional. It is a generic callback and the CLI is free to do whatever it wants.
| line | current input line (in/out argument) |
| p_x | pointer to current x coordinate of the cursor (in/out) |
| p_sellen | pointer to current selection length (usually 0) |
| p_vk_key | pointer to virtual key code (in/out). if the key has been handled, it should be reset to 0 by CLI |
| shift | shift state |
| true | modified input line or x coordinate or selection length |
| false | otherwise |
| cli_t::bool | ( | idaapi * | find_completions | ) |
Callback: the user pressed Tab/Shift+Tab.
This callback is optional.
| [out] | out_completions | results of completion |
| [out] | out_hints | one entry per completion result giving hints about the candidate (function protype, variable type, etc ...) Either has to be exactly the length of out_completions or zero length to display no hints. |
| [out] | out_docs | one entry per completion result giving the docstring of the corresponding item in out_completions. Either has to be exactly the length of out_completions or zero length to display no docstrings. |
| [out] | out_match_start | the codepoint index in the line, where match starts |
| [out] | out_match_end | the codepoint index in the line, where ends ends |
| line | command line | |
| x | codepoint index of the cursor in line |
| true | got results |
| false | otherwise |
| size_t cli_t::size |
size of this structure
| int32 cli_t::flags |
| const char* cli_t::sname |
short name (displayed on the button)
| const char* cli_t::lname |
long name (displayed in the menu)
| const char* cli_t::hint |
hint for the input line
| int* cli_t::p_x |
| int int* cli_t::p_sellen |
| int int int* cli_t::p_vk_key |
| int int int int cli_t::shift |
| qstrvec_t* cli_t::out_hints |