IDA C++ SDK 9.2
Loading...
Searching...
No Matches
cli_t Struct Reference

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
 bool (idaapi *find_completions_ex)(cli_completions_t *out
 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
intp_x
int intp_sellen
int int intp_vk_key
int int int int shift
qstrvec_tout_hints
qstrvec_t qstrvec_tout_docs
qstrvec_t qstrvec_t intout_match_start
qstrvec_t qstrvec_t int intout_match_end
qstrvec_t qstrvec_t int int const char * line
qstrvec_t qstrvec_t int int const char int x
const char * line
const char int x
const char int size_t max_results

Detailed Description

Command line interpreter.

Provides functionality for the command line (located at the bottom of the main window). Only GUI version of IDA supports CLIs.

Member Function Documentation

◆ bool() [1/4]

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.

Parameters
linecommand to execute (utf-8-encoded)
Return values
trueexecuted line
falseask for more lines

◆ bool() [2/4]

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.

Parameters
linecurrent input line (in/out argument)
p_xpointer to current x coordinate of the cursor (in/out)
p_sellenpointer to current selection length (usually 0)
p_vk_keypointer to virtual key code (in/out). if the key has been handled, it should be reset to 0 by CLI
shiftshift state
Return values
truemodified input line or x coordinate or selection length
falseotherwise

◆ bool() [3/4]

cli_t::bool ( idaapi * find_completions)
Deprecated
Use find_completions_ex() instead.

◆ bool() [4/4]

cli_t::bool ( idaapi * find_completions_ex)

Callback: the user pressed Tab/Shift+Tab.

This callback is optional.

Parameters
[out]outresults of completion
linecommand line
xcodepoint index of the cursor in line
max_resultsmaximum number of results back
Return values
truegot results
falseotherwise

Member Data Documentation

◆ size

size_t cli_t::size

size of this structure

◆ flags

int32 cli_t::flags

◆ sname

const char* cli_t::sname

short name (displayed on the button)

◆ lname

const char* cli_t::lname

long name (displayed in the menu)

◆ hint

const char* cli_t::hint

hint for the input line

◆ p_x

int* cli_t::p_x

◆ p_sellen

int int* cli_t::p_sellen

◆ p_vk_key

int int int* cli_t::p_vk_key

◆ shift

int int int int cli_t::shift

◆ out_hints

qstrvec_t* cli_t::out_hints

◆ out_docs

qstrvec_t qstrvec_t* cli_t::out_docs

◆ out_match_start

qstrvec_t qstrvec_t int* cli_t::out_match_start

◆ out_match_end

qstrvec_t qstrvec_t int int* cli_t::out_match_end

◆ line [1/2]

qstrvec_t qstrvec_t int int const char* cli_t::line

◆ x [1/2]

qstrvec_t qstrvec_t int int const char int cli_t::x

◆ line [2/2]

const char* cli_t::line

◆ x [2/2]

const char int cli_t::x

◆ max_results

const char int size_t cli_t::max_results

The documentation for this struct was generated from the following file: