1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-25 21:07:39 +03:00

fix build on windows

This commit is contained in:
Wez Furlong 2023-04-06 17:26:35 -07:00
parent 60566c7119
commit 2843adb680
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -458,10 +458,18 @@ impl Pane for LocalPane {
}
fn tty_name(&self) -> Option<String> {
#[cfg(unix)]
{
let name = self.pty.lock().tty_name()?;
Some(name.to_string_lossy().into_owned())
}
#[cfg(windows)]
{
None
}
}
fn get_foreground_process_info(&self) -> Option<LocalProcessInfo> {
#[cfg(unix)]
if let Some(pid) = self.pty.lock().process_group_leader() {