semantic version correction
This commit is contained in:
parent
6d3f23b3b3
commit
0de76f2162
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "crossterm"
|
name = "crossterm"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
authors = ["T. Post"]
|
authors = ["T. Post"]
|
||||||
description = "An crossplatform terminal library for manipulating terminals."
|
description = "An crossplatform terminal library for manipulating terminals."
|
||||||
repository = "https://github.com/TimonPost/crossterm"
|
repository = "https://github.com/TimonPost/crossterm"
|
||||||
@ -35,7 +35,7 @@ members = [
|
|||||||
crossterm_screen = { optional = true, path = "./crossterm_screen", version = "^0.2" }
|
crossterm_screen = { optional = true, path = "./crossterm_screen", version = "^0.2" }
|
||||||
crossterm_cursor = { optional = true, path = "./crossterm_cursor", version = "^0.2" }
|
crossterm_cursor = { optional = true, path = "./crossterm_cursor", version = "^0.2" }
|
||||||
crossterm_terminal = { optional = true, path = "./crossterm_terminal", version = "^0.2" }
|
crossterm_terminal = { optional = true, path = "./crossterm_terminal", version = "^0.2" }
|
||||||
crossterm_style = { optional = true, path = "./crossterm_style", version = "^0.3" }
|
crossterm_style = { optional = true, path = "./crossterm_style", version = "^0.4" }
|
||||||
crossterm_input = { optional = true, path = "./crossterm_input", version = "^0.3" }
|
crossterm_input = { optional = true, path = "./crossterm_input", version = "^0.3" }
|
||||||
crossterm_utils = { optional = false, path = "./crossterm_utils", version = "^0.2"}
|
crossterm_utils = { optional = false, path = "./crossterm_utils", version = "^0.2"}
|
||||||
|
|
||||||
|
@ -53,13 +53,13 @@ This crate consists of five modules that are provided behind [feature flags](htt
|
|||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
This documentation is only for Crossterm version `0.9.^`. If you have an older version of Crossterm, then I suggest you check the [Upgrade Manual](https://github.com/TimonPost/crossterm/blob/master/docs/UPGRADE.md). Also, check out the [examples](https://github.com/TimonPost/crossterm/tree/master/examples) folders with detailed examples for all functionality of this crate.
|
This documentation is only for Crossterm version `^0.10`. If you have an older version of Crossterm, then I suggest you check the [Upgrade Manual](https://github.com/TimonPost/crossterm/blob/master/docs/UPGRADE.md). Also, check out the [examples](https://github.com/TimonPost/crossterm/tree/master/examples) folders with detailed examples for all functionality of this crate.
|
||||||
|
|
||||||
Add the Crossterm package to your `Cargo.toml` file.
|
Add the Crossterm package to your `Cargo.toml` file.
|
||||||
|
|
||||||
```
|
```
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crossterm = "0.9.6"
|
crossterm = "^0.10"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Useful Links
|
### Useful Links
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
use crossterm_utils::{Result, sys::unix::{self, RAW_MODE_ENABLED}};
|
use crossterm_utils::{
|
||||||
|
sys::unix::{self, RAW_MODE_ENABLED},
|
||||||
|
Result,
|
||||||
|
};
|
||||||
use std::io::{self, BufRead, Write};
|
use std::io::{self, BufRead, Write};
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
@ -22,8 +25,7 @@ pub fn get_cursor_position() -> (u16, u16) {
|
|||||||
pub fn show_cursor(show_cursor: bool) -> Result<()> {
|
pub fn show_cursor(show_cursor: bool) -> Result<()> {
|
||||||
if show_cursor {
|
if show_cursor {
|
||||||
write_cout!(csi!("?25h"))?;
|
write_cout!(csi!("?25h"))?;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
write_cout!(csi!("?25l"))?;
|
write_cout!(csi!("?25l"))?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::sys::unix::{get_tty, read_char_raw};
|
use crate::sys::unix::{get_tty, read_char_raw};
|
||||||
use crossterm_utils::{csi, write_cout, Result, ErrorKind};
|
use crossterm_utils::{csi, write_cout, ErrorKind, Result};
|
||||||
use std::char;
|
use std::char;
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "crossterm_style"
|
name = "crossterm_style"
|
||||||
version = "0.3.4"
|
version = "0.4.0"
|
||||||
authors = ["T. Post"]
|
authors = ["T. Post"]
|
||||||
description = "A cross-platform library styling the terminal output."
|
description = "A cross-platform library styling the terminal output."
|
||||||
repository = "https://github.com/TimonPost/crossterm"
|
repository = "https://github.com/TimonPost/crossterm"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//! This module is used for Windows 10 terminals and Unix terminals by default.
|
//! This module is used for Windows 10 terminals and Unix terminals by default.
|
||||||
|
|
||||||
use crate::{Attribute, Color, ITerminalColor};
|
use crate::{Attribute, Color, ITerminalColor};
|
||||||
use crossterm_utils::{Result, write_cout};
|
use crossterm_utils::{write_cout, Result};
|
||||||
|
|
||||||
use crate::Colored;
|
use crate::Colored;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
Loading…
Reference in New Issue
Block a user