foxcirc/pipedconsole

A rust crate for managing multiple consoles from one windows application

Normaly a program running on windows can only use one console

Pipedconsole

A rust crate for managing multiple consoles from one windows application.

.

A process can be associated with only one console, so the AllocConsole function fails if the calling process already has a console.

From the microsoft docs.

This crate solves this problem by providing an abstraction over a worker process wich is controlled using named pipes.

Usage

You can use the Console class to create a new console, after that you can write to it or read a line.

use pipedconsole::Console;

let console = Console::new("My Console").expect("Failed to create a new console");
console.println("What is your name?").expect("Failed to call println"); // a seperate console window

let mut name = String::new();
console.read_line(&mut name).expect("Failed to read from the console");
println!("Your name is: {}", name); // main processe's console

Documentation and download

Download the crate either directly through Cargo or visit crates.io.

More documentation can be found on docs.rs.

Changelog

0.2.0 -> 0.2.3

New system for building the console_worker executable. It is easier to use and comes with auto detection for the executable.

0.0.0 -> 0.2.0

Got docs.rs to work correctly.

Information - Updated Jun 28, 2022

Stars: 1
Forks: 0
Issues: 0

Rust bindings for libinjection

Add libinjection to dependencies of Cargo

Rust bindings for libinjection

Rust bindings for the C++ api of PyTorch

LIghtweight wrapper for pytorch eg libtorch in rust

Rust bindings for the C++ api of PyTorch

Rust leveldb bindings

Almost-complete bindings for leveldb for Rust

Rust leveldb bindings

rust-analyzer is a modular compiler frontend for the Rust language

It also contains some tips & tricks to help you be more productive when using rust-analyzer

rust-analyzer is a modular compiler frontend for the Rust language

Rust-Lightning is a Bitcoin Lightning library written in Rust

lightning, does not handle networking, persistence, or any other I/O

Rust-Lightning is a Bitcoin Lightning library written in Rust

Command Line Argument Parser for Rust

It is a simple-to-use, efficient, and full-featured library for parsing command line arguments and subcommands when writing command line, console or terminal applications

Command Line Argument Parser for Rust

A logger that routes messages to the browser's console

Rust's log levels map to the browser's console log in the following way

A logger that routes messages to the browser's console

Rust bindings for the Newt console UI library

Newt is a small and simple to use UI library providing widgets and

Rust bindings for the Newt console UI library

RustConsoleGameEngine

A basic CLI game engine that handles timing, input and rendering to the Windows terminal; heavily inspired by the olcConsoleGameEngine by Javidx9

RustConsoleGameEngine

A Rust library for parsing Smash Ultimate XMB files

The binary application prints an XMB file to the console in JSON format

A Rust library for parsing Smash Ultimate XMB files
Facebook Instagram Twitter GitHub Dribbble
Privacy