MCPcopy Create free account

hub / github.com/BurntSushi/termcolor / functions

Functions78 in github.com/BurntSushi/termcolor

↓ 4 callersMethodlen
Returns the length of this buffer in bytes.
src/lib.rs:967
↓ 4 callersMethodlock
(&self)
src/lib.rs:251
↓ 3 callersMethodflush
(&mut self)
src/lib.rs:281
↓ 3 callersMethodhandle
(&self)
wincolor/src/win.rs:44
↓ 3 callersMethodpush
Push the given color specification into this buffer. This has the effect of setting the given color information at the current position in the buffer
src/lib.rs:1341
↓ 3 callersMethodset
Applies the current text attributes.
wincolor/src/win.rs:80
↓ 3 callersMethodwrite_color
( &mut self, fg: bool, c: &Color, intense: bool, )
src/lib.rs:1189
↓ 2 callersMethodget_ref
Return a reference to the inner writer.
src/lib.rs:1091
↓ 2 callersMethodreset
(&mut self)
src/lib.rs:127
↓ 2 callersMethodshould_ansi
(&self)
src/lib.rs:195
↓ 2 callersMethodshould_attempt_color
(&self)
src/lib.rs:160
↓ 2 callersMethodto_fg
(&self)
wincolor/src/win.rs:197
↓ 2 callersMethodwrap
(&self, wtr: Q)
src/lib.rs:1762
↓ 2 callersMethodwrite_console
( &self, console: &mut wincolor::Console, )
src/lib.rs:1510
↓ 2 callersMethodwrite_str
(&mut self, s: &str)
src/lib.rs:1185
↓ 1 callersMethodbg
Get the background color.
src/lib.rs:1437
↓ 1 callersMethodfg
Get the foreground color.
src/lib.rs:1428
↓ 1 callersMethodis_empty
Returns true if and only if this buffer is empty.
src/lib.rs:962
↓ 1 callersMethodis_synchronous
(&self)
src/lib.rs:128
↓ 1 callersMethodset_virtual_terminal_processing
Toggle virtual terminal processing. This method attempts to toggle virtual terminal processing for this console. If there was a problem toggling it,
wincolor/src/win.rs:130
↓ 1 callersMethodto_bg
(&self)
wincolor/src/win.rs:189
↓ 1 callersMethodto_windows
( self, intense: bool, )
src/lib.rs:1567
↓ 1 callersMethodto_word
(&self)
wincolor/src/win.rs:161
↓ 1 callersMethodwrite
(&mut self, b: &[u8])
src/lib.rs:271
↓ 1 callersFunctionwrite_lossy_utf8
(mut w: W, buf: &[u8])
src/lib.rs:1806
Methodansi
Create a buffer that uses ANSI escape sequences.
src/lib.rs:951
Methodas_mut_slice
Return the underlying data of the buffer as a mutable slice.
src/lib.rs:1010
Methodas_slice
Return the underlying data of the buffer.
src/lib.rs:1000
Functionassert_is_send
()
src/lib.rs:1823
Methodbg
Apply the given intensity and color attributes to the console background. If there was a problem setting attributes on the console, then an error is
wincolor/src/win.rs:103
Methodbold
Get whether this is bold or not. Note that the bold setting has no effect in a Windows console.
src/lib.rs:1448
Methodbuffer
(&self)
src/lib.rs:840
Methodclear
Clears this buffer.
src/lib.rs:977
Methodconsole
()
src/lib.rs:957
Methodcreate
( sty: StandardStreamType, choice: ColorChoice, )
src/lib.rs:474
Methodcreate_for_stream
Get a console for a standard I/O stream.
wincolor/src/win.rs:54
Methoddescription
(&self)
src/lib.rs:1689
Methodfg
Apply the given intensity and color attributes to the console foreground. If there was a problem setting attributes on the console, then an error is
wincolor/src/win.rs:92
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:1700
Methodfrom_bg
(word: WORD)
wincolor/src/win.rs:193
Methodfrom_fg
(word: WORD)
wincolor/src/win.rs:204
Methodfrom_str
(s: &str)
src/lib.rs:1726
Methodfrom_str_numeric
Parses a numeric color string, either ANSI or RGB.
src/lib.rs:1607
Methodfrom_stream
(stream: &StandardStream)
src/lib.rs:403
Methodfrom_word
(word: WORD)
wincolor/src/win.rs:170
Methodget_mut
Return a mutable reference to the inner writer.
src/lib.rs:1094
Methodintense
Get whether this is intense or not. On Unix-like systems, this will output the ANSI escape sequence that will print a high-intensity version of the c
src/lib.rs:1479
Methodinto_inner
Consume this buffer and return the underlying raw data. On Windows, this unrecoverably drops all color information associated with the buffer.
src/lib.rs:990
Methodinvalid
Return the string that couldn't be parsed as a valid color.
src/lib.rs:1685
Methodis_none
Returns true if this color specification has no colors or styles.
src/lib.rs:1495
Methodis_synchronous
Returns true if and only if the underlying writer must synchronously interact with an end user's device in order to control colors. By default, this a
src/lib.rs:117
Methodnew
(sty: StandardStreamType)
src/lib.rs:232
Methodno_color
Create a buffer that drops all color information.
src/lib.rs:946
Methodparse_number
(s: &str)
src/lib.rs:1614
Methodprint
Prints the contents of the given buffer. It is safe to call this from multiple threads simultaneously. In particular, all buffers are written atomica
src/lib.rs:858
Methodreset
Reset the console text attributes to their original settings. The original settings correspond to the text attributes on the console when this `Conso
wincolor/src/win.rs:116
Methodseparator
If set, the separator given is printed between buffers. By default, no separator is printed. The default value is `None`.
src/lib.rs:831
Methodset_bg
Set the background color.
src/lib.rs:1440
Methodset_bold
Set whether the text is bolded or not. Note that the bold setting has no effect in a Windows console.
src/lib.rs:1453
Methodset_color
(&mut self, spec: &ColorSpec)
src/lib.rs:124
Methodset_fg
Set the foreground color.
src/lib.rs:1431
Methodset_intense
Set whether the text is intense or not. On Unix-like systems, this will output the ANSI escape sequence that will print a high-intensity version of t
src/lib.rs:1489
Methodset_underline
Set whether the text is underlined or not. Note that the underline setting has no effect in a Windows console.
src/lib.rs:1466
Functionstandard_stream_is_send
()
src/lib.rs:1826
Methodstderr
Create a new `StandardStream` with the given color preferences that writes to standard error. On Windows, if coloring is desired and a Windows consol
src/lib.rs:384
Methodstderr
Create a new Console to stderr. If there was a problem creating the console, then an error is returned.
wincolor/src/win.rs:75
Methodstdout
Create a new `StandardStream` with the given color preferences that writes to standard output. On Windows, if coloring is desired and a Windows conso
src/lib.rs:371
Methodstdout
Create a new Console to stdout. If there was a problem creating the console, then an error is returned.
wincolor/src/win.rs:68
Methodsupports_color
(&self)
src/lib.rs:123
Functiontest_256_parse_err_out_of_range
()
src/lib.rs:1849
Functiontest_256_parse_ok
()
src/lib.rs:1837
Functiontest_rgb_parse_err_bad_format
()
src/lib.rs:1882
Functiontest_rgb_parse_err_out_of_range
()
src/lib.rs:1873
Functiontest_rgb_parse_ok
()
src/lib.rs:1858
Functiontest_simple_parse_ok
()
src/lib.rs:1831
Functiontest_var_ansi_write_256
()
src/lib.rs:1904
Functiontest_var_ansi_write_rgb
()
src/lib.rs:1897
Methodunderline
Get whether this is underline or not. Note that the underline setting has no effect in a Windows console.
src/lib.rs:1461