shell: first ProcessLauncher with PTY

This commit is contained in:
Michael Sippel 2021-09-03 06:49:18 +02:00
parent bd1572c632
commit cee6e02a04
Signed by: senvas
GPG key ID: F96CF119C34B64A6
5 changed files with 261 additions and 214 deletions

View file

@ -77,5 +77,10 @@ where Key: Clone + Hash + Eq + Send + Sync + 'static,
self.insert(key, item);
}
}
pub fn remove(&mut self, key: Key) {
self.data.write().unwrap().remove(&key);
self.cast.notify(&key);
}
}

View file

@ -43,10 +43,6 @@ impl TerminalEditor for CharEditor {
} else {
"".to_string()
})
.map_item(
|_idx, atom|
atom.add_style_back(TerminalStyle::fg_color((120, 200, 10)))
)
}
fn handle_terminal_event(&mut self, event: &TerminalEvent) -> TerminalEditorResult {
@ -114,6 +110,10 @@ impl TerminalEditor for StringEditor {
.decorate("\"", "\"", "", 1)
.to_grid_horizontal()
.flatten()
.map_item(
|_idx, atom|
atom.add_style_back(TerminalStyle::fg_color((120, 200, 10)))
)
}
fn handle_terminal_event(&mut self, event: &TerminalEvent) -> TerminalEditorResult {