mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 11:54:02 +01:00
4af0a6a3fa
* Revert "Revert "Try again: in unix like system, set foreground process while running external command (#6273)" (#6542)"
This reverts commit 2bb367f570
.
* 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::*;
|