diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-04-06 16:55:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-06 16:55:32 +0200 |
| commit | e551bec538fcfe709239fcbc6fc2678335729b8c (patch) | |
| tree | 0c9a591ee9a67f94222fdc14c501c8f825832cf3 /src/client | |
| parent | fix(terminal): support bright colors (#256) (diff) | |
| download | sl0ppij-e551bec538fcfe709239fcbc6fc2678335729b8c.tar.gz sl0ppij-e551bec538fcfe709239fcbc6fc2678335729b8c.tar.xz sl0ppij-e551bec538fcfe709239fcbc6fc2678335729b8c.zip | |
fix(screen): handle events directed at other tabs (#257)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/tab.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs index 9e2b370f..db109480 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -561,6 +561,9 @@ impl Tab { None } } + pub fn has_terminal_pid(&self, pid: RawFd) -> bool { + self.panes.contains_key(&PaneId::Terminal(pid)) + } pub fn handle_pty_event(&mut self, pid: RawFd, event: VteEvent) { // if we don't have the terminal in self.terminals it's probably because // of a race condition where the terminal was created in pty_bus but has not |
