fix(render): properly render plugin borders and content

This commit is contained in:
Aram Drevekenin 2021-01-06 10:10:25 +01:00
parent d25df96eef
commit d8fca1d808
2 changed files with 5 additions and 1 deletions

View file

@ -563,6 +563,7 @@ impl Tab {
// TBD // TBD
} }
PaneKind::PluginPane(_) => { PaneKind::PluginPane(_) => {
boundaries.add_rect(&terminal);
if let Some(output) = terminal.render() { if let Some(output) = terminal.render() {
write!( write!(
stdout, stdout,

View file

@ -111,7 +111,10 @@ impl Pane for PluginPane {
.unwrap(); .unwrap();
self.should_render = false; self.should_render = false;
Some(buf_rx.recv().unwrap()) let goto_plugin_coordinates = format!("\u{1b}[{};{}H", self.position_and_size.y + 1, self.position_and_size.x + 1); // goto row/col and reset styles
let reset_styles = "\u{1b}[m";
let vte_output = format!("{}{}{}", goto_plugin_coordinates, reset_styles, buf_rx.recv().unwrap());
Some(vte_output)
} else { } else {
None None
} }