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:
parent
60566c7119
commit
2843adb680
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user