Type Alias simics_api_sys::cmd_line_frontend_interface_t
source · pub type cmd_line_frontend_interface_t = cmd_line_frontend_interface;
Aliased Type§
struct cmd_line_frontend_interface_t {
pub write: Option<unsafe extern "C" fn(_: *mut conf_object, _: *const i8)>,
pub delete_line: Option<unsafe extern "C" fn(_: *mut conf_object)>,
pub disconnect: Option<unsafe extern "C" fn(_: *mut conf_object)>,
pub cursor_left: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>,
pub cursor_right: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>,
pub clear_screen: Option<unsafe extern "C" fn(_: *mut conf_object)>,
pub prompt_end: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>,
pub bell: Option<unsafe extern "C" fn(_: *mut conf_object)>,
}
Fields§
§write: Option<unsafe extern "C" fn(_: *mut conf_object, _: *const i8)>
write a character on the command line at the current cursor position, overwriting any existing character there
delete_line: Option<unsafe extern "C" fn(_: *mut conf_object)>
deletes the line from current position to the end of the line
disconnect: Option<unsafe extern "C" fn(_: *mut conf_object)>
§cursor_left: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>
moves the cursor num characters to the left.
cursor_right: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>
moves the cursor num characters to the right.
clear_screen: Option<unsafe extern "C" fn(_: *mut conf_object)>
clears the screen and moves the cursor to position 0. Optional, may be NULL if not implemented.
prompt_end: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>
called when the prompt has been printed with the position on the line of the first non-prompt character. Optional, may be null if not implemented
bell: Option<unsafe extern "C" fn(_: *mut conf_object)>
optional