Skip to content

Commit f394403

Browse files
authoredSep 20, 2022
Update README.md (#10)
Colour was changed to Color (not Color -> Color). Fixed two other uses of British spelling
1 parent 736e913 commit f394403

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# nu-ansi-term
22

3-
> This is a copy of rust-ansi-term but with Color change to Color and light foreground colors added (90-97) as well as light background colors added (100-107).
3+
> This is a copy of rust-ansi-term but with Colour change to Color and light foreground colors added (90-97) as well as light background colors added (100-107).
44
55
This is a library for controlling colors and formatting, such as red bold text or blue underlined text, on ANSI terminals.
66

@@ -127,9 +127,9 @@ use nu_ansi_term::Color::RGB;
127127
RGB(70, 130, 180).paint("Steel blue");
128128
```
129129

130-
## Combining successive coloured strings
130+
## Combining successive colored strings
131131

132-
The benefit of writing ANSI escape codes to the terminal is that they _stack_: you do not need to end every coloured string with a reset code if the text that follows it is of a similar style.
132+
The benefit of writing ANSI escape codes to the terminal is that they _stack_: you do not need to end every colored string with a reset code if the text that follows it is of a similar style.
133133
For example, if you want to have some blue text followed by some blue bold text, it’s possible to send the ANSI code for blue, followed by the ANSI code for bold, and finishing with a reset code without having to have an extra one between the two strings.
134134

135135
This crate can optimise the ANSI codes that get printed in situations like this, making life easier for your terminal renderer.

0 commit comments

Comments
 (0)
Please sign in to comment.