parent
0b429e5dcf
commit
c7d8fa3bc1
@ -10,7 +10,7 @@
|
||||
//! ## Examples
|
||||
//!
|
||||
//! Cursor actions can be performed with commands.
|
||||
//! Please have a look at [command documention](../index.html#command-api) for a more detailed documentation.
|
||||
//! Please have a look at [command documentation](../index.html#command-api) for a more detailed documentation.
|
||||
//!
|
||||
//! ```no_run
|
||||
//! use std::io::{stdout, Write};
|
||||
|
@ -34,7 +34,7 @@
|
||||
// Produces a single method for a "base" Styler implementation
|
||||
//
|
||||
// The first argument is the type for which Styler is being implemented. Because this is the same
|
||||
// for all "base" types, we can collase them into a single macro.
|
||||
// for all "base" types, we can collapse them into a single macro.
|
||||
macro_rules! def_attr_base {
|
||||
($impl_ty:ty, $name:ident => $attr:path) => {
|
||||
fn $name(self) -> StyledContent<$impl_ty> {
|
||||
|
@ -83,7 +83,7 @@ impl<D: Display> StyledContent<D> {
|
||||
&self.style
|
||||
}
|
||||
|
||||
/// Returns a mutable reference to the style, so that it can be futher
|
||||
/// Returns a mutable reference to the style, so that it can be further
|
||||
/// manipulated
|
||||
#[inline]
|
||||
pub fn style_mut(&mut self) -> &mut ContentStyle {
|
||||
@ -111,7 +111,7 @@ impl<D: Display> Display for StyledContent<D> {
|
||||
|
||||
self.content.fmt(f)?;
|
||||
|
||||
// TODO: There are specific command sequences for "reset forground
|
||||
// TODO: There are specific command sequences for "reset foreground
|
||||
// color (39m)" and "reset background color (49m)"; consider using
|
||||
// these.
|
||||
if reset {
|
||||
|
@ -8,7 +8,7 @@
|
||||
//! to demonstrate the capabilities.
|
||||
//!
|
||||
//! Most terminal actions can be performed with commands.
|
||||
//! Please have a look at [command documention](../index.html#command-api) for a more detailed documentation.
|
||||
//! Please have a look at [command documentation](../index.html#command-api) for a more detailed documentation.
|
||||
//!
|
||||
//! ## Screen Buffer
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user