From 32682a2d0877a8f009d7a6f4c5bdef584a547f81 Mon Sep 17 00:00:00 2001 From: Frank Zechert Date: Sat, 1 Apr 2023 23:01:53 +0200 Subject: [PATCH] renames crate from ansi to ansi-control-codes --- Cargo.toml | 2 +- src/c0.rs | 2 +- src/c1.rs | 2 +- src/control_sequences.rs | 2 +- src/independent_control_functions.rs | 2 +- src/lib.rs | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3b787c9..a5ed55b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ansi" +name = "ansi-control-codes" description = "This library contains all ANSI Escape Codes that are defined in the ISO 6429 Standard" version = "0.0.1" edition = "2021" diff --git a/src/c0.rs b/src/c0.rs index e0aef49..6cd967c 100644 --- a/src/c0.rs +++ b/src/c0.rs @@ -16,7 +16,7 @@ //! For example, designate the C0 set, then ring the bell. //! //! ``` -//! use ansi::c0::{ANNOUNCER_SEQUENCE, BEL}; +//! use ansi_control_codes::c0::{ANNOUNCER_SEQUENCE, BEL}; //! println!("{}{}", ANNOUNCER_SEQUENCE, BEL); //! ``` //! diff --git a/src/c1.rs b/src/c1.rs index 6f4bca5..546c13d 100644 --- a/src/c1.rs +++ b/src/c1.rs @@ -16,7 +16,7 @@ //! For example, designate the C1 set, then set a character tabulation stop. //! //! ``` -//! use ansi::c1::{ANNOUNCER_SEQUENCE, HTS}; +//! use ansi_control_codes::c1::{ANNOUNCER_SEQUENCE, HTS}; //! println!("{}{}", ANNOUNCER_SEQUENCE, HTS); //! ``` //! diff --git a/src/control_sequences.rs b/src/control_sequences.rs index c23c5c9..fdd9024 100644 --- a/src/control_sequences.rs +++ b/src/control_sequences.rs @@ -13,7 +13,7 @@ //! For example, move the cursor to line 5, character 13: //! //! ``` -//! use ansi::control_sequences::CUP; +//! use ansi_control_codes::control_sequences::CUP; //! print!("{}", CUP(Some(5), Some(13))); //! ``` //! diff --git a/src/independent_control_functions.rs b/src/independent_control_functions.rs index f46271a..4b31a1c 100644 --- a/src/independent_control_functions.rs +++ b/src/independent_control_functions.rs @@ -12,7 +12,7 @@ //! For example, to disable manual input: //! //! ``` -//! use ansi::independent_control_functions::DMI; +//! use ansi_control_codes::independent_control_functions::DMI; //! println!("{}", DMI); //! ``` //! diff --git a/src/lib.rs b/src/lib.rs index abd37be..50a521c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,14 +28,14 @@ //! The control functions can be put into normal strings. For example, to ring the bell: //! //! ``` -//! use ansi::c0::BEL; +//! use ansi_control_codes::c0::BEL; //! println!("Let's ring the bell {}", BEL); //! ``` //! //! Or to move the cursor to line 5, column 13: //! //! ``` -//! use ansi::control_sequences::CUP; +//! use ansi_control_codes::control_sequences::CUP; //! print!("{}", CUP(5.into(), 13.into())); //! ``` //! @@ -43,7 +43,7 @@ //! This is possible by invoking one of the announcer sequences. //! //! ``` -//! use ansi::c1::{ANNOUNCER_SEQUENCE, NEL}; +//! use ansi_control_codes::c1::{ANNOUNCER_SEQUENCE, NEL}; //! // announce the C1 control function set, then move to the next line. //! print!("{}{}", ANNOUNCER_SEQUENCE, NEL); //! ```