docs.rs failed to build crossterm_winapi-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
crossterm_winapi-0.9.1
Crossterm Winapi | Common WinApi Abstractions
This crate provides some wrappers aground common used WinApi functions. The purpose of this library is originally meant for crossterm, and it is very unstable right because of that some changes could be expected.
Features
This crate provides some abstractions over:
- CONSOLE_SCREEN_BUFFER_INFO (used to extract information like cursor pos, terminal size etc.)
- HANDLE (the handle needed to run functions from WinApi)
- SetConsoleActiveScreenBuffer (activate an other screen buffer)
- Set/GetConsoleMode (e.g. console modes like disabling output)
- SetConsoleTextAttribute (eg. coloring)
- SetConsoleWindowInfo (changing the buffer location e.g. scrolling)
- FillConsoleOutputAttribute, FillConsoleOutputCharacter (used to replace some block of cells with a color or character.)
- SetConsoleInfo
Example
Here are some examples do demonstrate how to work whit this crate. Please see examples for more
Screenbuffer information
use ;
Handle
use ;
Inspiration
I wanted to expose some of the api crossterm uses for WinApi.
- I thought it would be helpful for other people to, to have a small rust seemable abstraction over the WinApi bindings.
- I have some future plans for crossterm wherefore I needed to seperate the WinAPi logic out of the currenbt librarie.