Support section infos in list mode
This commit is contained in:
parent
882e91c920
commit
ae1221de81
|
@ -394,7 +394,7 @@ impl ConsoleUI {
|
||||||
.highlight_style(Style::default().bg(Color::White));
|
.highlight_style(Style::default().bg(Color::White));
|
||||||
|
|
||||||
let top_section = &data.section_info[section_selection.get_selection_for(ListSectionMode::TopSection) + 1];
|
let top_section = &data.section_info[section_selection.get_selection_for(ListSectionMode::TopSection) + 1];
|
||||||
let info_text = Paragraph::new(format!("Name: {}", top_section.name))
|
let info_text = Paragraph::new(format!("Name: {}\nAdr: 0x{:X} - 0x{:X}\nSize: {} Bytes", top_section.name, top_section.start_adr, top_section.get_end_adr(), top_section.size))
|
||||||
.style(Style::default().fg(Color::White))
|
.style(Style::default().fg(Color::White))
|
||||||
.alignment(Alignment::Left)
|
.alignment(Alignment::Left)
|
||||||
.block(Block::default()
|
.block(Block::default()
|
||||||
|
|
Loading…
Reference in New Issue