pipedconsole 0.0.2

Piped console is a (currently windows-only) rust crate wich allows you to easily manage two or more different consoles from within one process.
1
2
3
4
5
6
7
8
9
10
11
use winapi::um::handleapi::CloseHandle;

/// 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);
    } }
}