[][src]Crate winconsole

This crate provides a wrapper for console-related functions in the Windows API.

Crate License

Usage

Add the following to Cargo.toml:

[dependencies]
winconsole = "0.11"

Then, add the following to your code:

extern crate winconsole;

There are a few optional features:

  • cgmath - Includes conversions for the cgmath Vector2 type.
  • input - Includes input-related functions.
  • serde - Support for serde.
  • window - Includes window-related functions.

These features must be added to Cargo.toml:

[dependencies.winconsole]
version = "0.11"
features = ["input", "serde", "window"]

Modules

console

Contains console-related functions, structs, and enums.

errors

Contains various error types.

Macros

cprint

Prints a colored message to the console. This has a side effect of flushing the console output.

cprintln

Prints a colored message to the console with a newline. This has a side effect of flushing the console output.