class Cradare2::TUI::ExplorerModel

Overview

Interactive terminal binary explorer and decompiler model powered by Opal TEA.

Included Modules

Defined in:

cradare2/tui/explorer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(client : Client) #

[View source]

Class Method Detail

def self.run(client : Client) : Nil #

[View source]

Instance Method Detail

def active_function : Model::Function | Nil #

[View source]
def active_tab : Int32 #

[View source]
def client : Client #

[View source]
def code_scroll : Int32 #

[View source]
def current_decompilation : String #

[View source]
def current_disassembly : String #

[View source]
def filtered_functions : Array(Model::Function) #

[View source]
def focus_pane : Symbol #

[View source]
def functions : Array(Model::Function) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def init : Opal::TEA::Cmd #
Description copied from module Opal::TEA::Model

Returns initial commands to execute upon application startup.


[View source]
def search_query : String #

[View source]
def searching? : Bool #

[View source]
def selected_func_idx : Int32 #

[View source]
def show_asm? : Bool #

[View source]
def side_by_side? : Bool #

[View source]
def update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd) #
Description copied from module Opal::TEA::Model

Updates the model state based on an incoming message, returning the new model and optional command.


[View source]
def view(width : Int32, height : Int32) : String #

[View source]
def view : String #
Description copied from module Opal::TEA::Model

Renders the current state as a formatted terminal string.


[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]