shell: first ProcessLauncher with PTY
This commit is contained in:
parent
bd1572c632
commit
cee6e02a04
5 changed files with 261 additions and 214 deletions
nested/src
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue