pipedconsole 0.3.2

Easily manage multiple windows consoles from one single process.
Documentation

#[cfg(windows)]
use winapi::um::handleapi::CloseHandle;

/// Closes the handle to the pipe.
/// When the handle is closed, the worker
/// process will automaticly exit.
#[cfg(not(windows))]
impl Drop for super::Console {
    fn drop(&mut self) { }
}

#[cfg(windows)]
/// Closes the handle to the pipe.
/// When the handle is closed, the worker
/// process will automaticly exit.
impl Drop for super::Console {
    fn drop(&mut self) { unsafe {
        CloseHandle(self.pipe);
    } }
}