mirror of
https://github.com/nushell/nushell.git
synced 2025-05-09 09:22:57 +00:00
* Revert "Revert "Try again: in unix like system, set foreground process while running external command (#6273)" (#6542)" This reverts commit 2bb367f570502cd26d6b7a81425d9f3b3b9eb432. * Make foreground job control hopefully work correctly These changes are mostly inspired by the glibc manual. * Fix typo in external command description * Only restore tty control to shell when no fg procs are left; reuse pgrp * Rework terminal acquirement code to be like fish Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
16 lines
418 B
Rust
16 lines
418 B
Rust
mod foreground;
|
|
#[cfg(any(target_os = "android", target_os = "linux"))]
|
|
mod linux;
|
|
#[cfg(target_os = "macos")]
|
|
mod macos;
|
|
#[cfg(target_os = "windows")]
|
|
mod windows;
|
|
|
|
pub use self::foreground::{ForegroundChild, ForegroundProcess};
|
|
#[cfg(any(target_os = "android", target_os = "linux"))]
|
|
pub use self::linux::*;
|
|
#[cfg(target_os = "macos")]
|
|
pub use self::macos::*;
|
|
#[cfg(target_os = "windows")]
|
|
pub use self::windows::*;
|