Files
boc/aamos-ledger-rust/target/debug/deps/libnu_ansi_term-31f92584f9b5a937.rmeta
T

504 lines
177 KiB
Plaintext
Raw Normal View History

rust
#rustc 1.96.0 (ac68faa20 2026-05-25)ÁÀ뉊]!ÜÛê(¹Þ—šên-5be7b69c3ff7b5b8ÁíàÄTËŸ ÜJîÄ)'ß\¥!-3d1337db07d0b3aeÁ¤²XctÔ'ÐÓ©z¨ɽÓ-a4945860e1c53b00Á¤°ð ¾ä-±($²ï=©Ã-7e98a21bfd32b0edÁòÖÀH•‘PIÓHã#£-055f30b747f859b6Árustc_std_workspace_coreÁ­Cçß^ò½èÝ$­Çÿ+Cé-c4878ee60b2242c9ÁŸÃï+Ñ]ŠqB<ÏïW#-8dd1dd90e70d0b6aÁ miniz_oxideÁ€š»J(P>àö÷g\K-1eb618da2918ab7fÁadler2ÁÆ;+Þ®5¥Ìýݰ¦ÛLˆ-f7919172d268e069Á hashbrownÁPäV9ÒÆèÜ"ÊÖVŽ\-0fc2184a5da6723aÁrustc_std_workspace_allocÁs&ØòØy¯s•bæ!‰ýŠ-97e4bf30be240674Á
std_detectÁhŠBîÙºÌI®ËÅš-9dbbf8346ba7ac8bÁrustc_demangleÁûë9´Ç×@Œ’ùXFº-f33013f239bf9f14Ácfg_ifÁÜLhž§Œaã¯>­-0a71c8f33a838301Á addr2lineÁ׎Þ!]8V$É@@-e618e6be60e87ba2ÁgimliÁ¸
°µ~Î1‹Ñt ðÁ€w-1f7768a68858f670ÁobjectÁ
áPÃ?­À¶¼QHJ¥-914cd6a4dbe590d1ÁmemchrÁ›º«8Ór­2Ù $¨ûib-cf21ca6f2bb15dcdÁë
‹ás«LÖ€îâƒ×ɯŒ-ee6f3747e38367f0Á$ñe$Ìe$¶i$ñhgnu_legacy_testÁ|˜‘)serde_json_testsÁ„Ü}$ª}KPtestsÁ,“Z$ˆZâ<äNâ<ÄN¸

ÄÀ¤ansiÁ
 write_prefixÁ ¨ 
 write_suffixÁ¨RESETÁwrite_foreground_codeÁ¨write_background_codeÁ¨prefixÁinfixÁsuffixÁä
ñ
ý
× ×!#×styleÁ)*æ *reset_before_styleÁ*boldÁ*dimmedÁ*italicÁ* underlineÁ*blinkÁ*reverseÁ*ª*
strikethroughÁ*fgÁ*¦
*is_plainÁ)8>):normalÁ:ˆ : :  :­ :½ :É :ª:Þ :ï :¦
)F÷
differenceÁKKMbetweenÁNdisplayÁPPPPPPPPPP P['aÁ[¤[ƒP_î_¤_ƒP
AnsiStringÁcîPAnsiByteStringÁeîPgîgšg¤g÷Plîl¤l style_refÁl
style_ref_mutÁlas_strÁltitleÁršl hyperlinkÁtšl
url_stringÁP AnsiStringsÁwîPðyîPAnsiByteStringsÁ{îP}îPpaintÁPÆîš¤Pî×PŒîŒwrite_toÁލPî¤ write_innerÁ¨ write_to_anyÁ¨P î×P
šîš¯œ¨P žîž¤žö¡¨¡writeÁ¥¥AnyWriteÁ§WstrÁ§ErrorÁ§ï§ñ¥¬î¬¬œ¬ï¬ñ¥²î²²œ²ï²ñutilÁ¸¸¸¸¸¸¸¸
sub_stringÁ¸unstyleÁ¸ unstyled_lenÁ ÄÄÄÇ×È gradientÁÊÊÊÊÊÊÊÑæ Ñfrom_color_rgbÁÑatÁÑÉ ÑbuildÁÖ Êbuild_all_gradient_textÁØ ÊÚcodeÁÊ
ANSIColorCodeÁÜansi_color_codeÁ
rgbÁßßßßãæ ãfrom_hexÁãfrom_hex_stringÁãfrom_f32ÁãgrayÁãgray_f32ÁãlerpÁßë÷ßí÷ßßßñÛßrgb_addÁßrgb_subÁß rgb_mul_f32Áß
rgb_negateÁß÷°÷ßú°úßý°ý߰߃°ƒÚß °Úß
°Úß Œ°ŒÚß ° ß
°Â ߰ ߘ°˜Â ß°Â ßž°žÂ ß¡°¡Â ߤ°¤Â ß§°§Ü ߪ°ªÜ  PrefixÁ®
®ˆ²ƒ 
µ×InfixÁ·
·ˆ·  ¼ƒ
¿×SuffixÁÁ
ÁˆÅƒÈ×)StyleÁÊ
foregroundÁÊ
backgroundÁÊis_boldÁÊ is_dimmedÁÊ is_italicÁÊ is_underlineÁÊis_blinkÁÊ
is_reverseÁÊ is_hiddenÁÊis_strikethroughÁÊprefix_with_resetÁ)ÖÖ))Ù))܃) )ColorÁßBlackÁà
ßDarkGrayÁâ
ßRedÁä
ßLightRedÁæ
ßGreenÁè
ß
LightGreenÁê
ßYellowÁì
ß LightYellowÁî
ßBlueÁð
ß LightBlueÁò
ßPurpleÁô
ß LightPurpleÁö
ßMagentaÁø
ß LightMagentaÁú
ßCyanÁü
ß LightCyanÁþ
ßWhiteÁ
ß LightGrayÁ
ßFixedÁ
ˆßRgbÁ
ˆŠ)
΅) ) )
)ƒ))×)>ßq
K
DifferenceÁ ExtraStylesÁœ
œˆResetÁŸ
EmptyÁ¡
K£ÖKK¦KK©ƒKK¬×P OSControlÁ®î®¤®TitleÁ±
®LinkÁ³urlÁP µîµ¤µÖP
¹î¹¤P¼î¼¤¼PÀîÀ¤À×PAnsiGenericStringÁÄîĤĨ ÄstringÁÄ oscontrolÁPÊîʤÊÖPÎîΤPÑîѤÑPÕîÕ¤Õ×PAnsiGenericStringsÁÙ
Ùî٤وPÞîÞ¤Þ×Pâîâ¤âÖPæîæ¤Péîé¤éÊGradientÁí¹íþÊð×ÊÊóƒÊÊÊ÷ÊùÖÊ TargetGroundÁû
ForegroundÁü
û
BackgroundÁþ
Ê ×Ê
Ê ƒƒÊ Ê
ÊÊÖß¿#½²­ß×ß߃ßßßߘÖ










!
!
!
$
$
$
,
-
.
/
0
1
2
3
4
5
6
N
N
^
b
o
p
q
v



Ž
Ž







œ
œ
¡
¡
ª
ª
«
«
°
°
±
±


·
·
À
À
Á
Á
Â
Â
È
È
È
Ô
Õ
Ö
Ö
Ø
Û
Ý
ê
ò
ó
ó
ô
ô
õ
õ
ö
ú
ü
ý




ˆ

Œ
Œ
Ž



˜
˜
š
ž
 
¡
¤
¤
¦
ª
³



½
À
À
À
Æ
É
É
É
×
Ú
Ú
Ý







¤
§
§
ª
­
­
­
¸
¿
¿
Ã
Ã
Ã
Í
Ô
Ô
Ø
Ø
Ø
á
á
á
å
ì
ì
ñ
ñ
ñ
ô
ø
ø
ú




ˆ
ˆ
Š







§ÜÛ®®¯ì°ˆ À˼wØ4Š 4¿c4Û··¸¦¹ˆº …>Á¬m§ Øå4Š å4¿cå4ÛÁÁÂçÈ ³sî,þ‘ØÆ5Š Æ5¿cÆ5Äc4Äcå4ÄcÆ5ÊÊ¡ Ë®ÌÀÍÒÎáÏòЃÑÒ§Ó¹ÔÊÕâ©4}QUpÐìº6µßº6º6Ûº6غ6Š º6³º6ßàá· âãÉ äåÞ æçî èéƒ!êë•!ìí¬!îï¿!ðñ×!òóè! ôõþ!
ö÷‘" øù©" úû½"
üýÖ"þÿç"ý"ƒ#¥#ˆˆ¿#ˆŠŠšq™»m
Êz­Ðì‡8µß‡8‡8Û‡8؇8Š ‡8¿c‡8³‡8éº6‡8œË$žˆŸ ë$¡¢ý$Î÷ÏVÁ$›Ðìï;µßï;ï;Ûï;Øï;Š ï;¿cï;®±²ë%³ý%´‰&PÇiYÒv&öî¤Ðì†=µß†=†=¿c†=؆=ÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úîÉ=Ðìƒ>µßƒ>ƒ>¿cƒ>؃>éÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©ú¿cÙÙÚ²(݈ E_æ:¬É8µîÉ=ß?Ðìß?µßß?ß?ÄcÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úîÄcÙÙÚ²(݈ E_æ:¬É8µî§êbî§Ÿ!î¿cº6¿cííÑ)î¹ïþØf_(ŠÃ‰fÛ…BØ…BŠ …BÐì…Bµß…B…B…B¿cûüýÈ*þÿß*¥¦ØšÇpÛCØCŠ CÐìCµßCCC¿c¿#Œ½²Ž­eâ„Ø‘zn‰ÛÿCØÿCŠ ÿCÐìÿCµßÿCÿCÿCéÿC‰E‰EéÿCœEœEÜÿCÄ ÿCÿCÄ ÿC 8ÿCÄ ÄEÿCÄ  8ÿCÄEïÿCÿCïÿCÄEïÄEÿCïáEÄEÑðÿCœEÑðÿC 8œEÑðÄEœEÑðáE¾FÑðœEÿCÑðœEÄEÑð¾FÿCÑð 8œEÄEÏ ÿCÏ ÄE±®»·ÄÁÛÊߨòíû²®¼·ÅÁÜÊß©[®_Äóíƒû´®¾·ÇÁÞÊß«õíûµ®¿·ÈÁ߬À®ÕÄÞÙÇÊðíû® ·#ÁÄÙÖʌߣµ®ÊÄâÙùíû˜ØÊŽß¥¹®ÎÄæÙöíûÙÊߦ¼®ÑÄéÙ÷íû8ÊßFÊgÄëí¬êb²Ÿ!ñ÷úý

ƒ
Œ

˜
ž¡
¤
§ª
Û žØ ?Š K¿c ?ÄcT Ðì ?µß ?³?é
§ÜÄ ïÑðÏ ,$ØBdÑB ® ÜBãBü£B@44ÀBº6$·Bº6b3$ÊL$ÐLŒÄL · ÔLÛLü‹LPå4,´Lº6$žLº6$¤Lº6º6{"ó &P$ƒRdüQ Á ‡RŽRüÎQ@Æ54ëQº6$âQº6b3ü˜J Ê Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ‡8„Q $¿è,üÞŠº6 º6 0ü‰@ Ê „Q„Q 
Ï-üÝrº6¾R ,üöB Ê „Q„Q$• 
¾.üÈvº6¾R ,üëB Ê „Q„Q 
³/ü½vº6¾R ,üëE Ê „Q„Q$ 
0üº|º6¾R ,üÕA Ê „Q„Q 
œ1ü¨tº6¾R ,üÈ C Ê „Q„Q 
‘!2ü™ xº6¾R ,ü¹#B Ê „Q„Q$Ø# 
$3ü‹#vº6,©#¾R,Ÿ# ,ü¼&I Ê „Q„Q$â&
'4ü‡&„º6,¬&¾R,¢& -„ü)T* Û¼‡8 ‹*üÜ)O Ê „Q 
ª*±*5üŸ)’º6,Ì)¾R,¯)‡8T¶)„Q܇8Û"®&Q„£-T¨- Û¼‡8 ²-üƒ-O Ê „Q 
Ñ-Ø-6üÆ,’º6,ó,¾R,Ö,‡8TÝ,„Q܇8Û"À&Qº6 oüÄC¾R ÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úÉ=¾R§{ã2¼Ð2 Ù æ2é2yüÿ1jÙÙÚ²(݈ E_æ:¬É8µ|º2 
ÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úœ2êdàargÁ¯á5¼Î5 Ù
‰E ä5ç5}üñ4vÙÙÚ²(݈ E_æ:¬É8µ‰fœ´5 
ÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©ú‰f’5ñfäÆd®ÔœÆ í ØßÒüR…BÿCÿCªÿCˆÿC|¹#þ'QÄ‘  š‰E  ‰E ¦‰E< ã¿#‰E æ¿#‰E é¿#‰E õ ø   û

  
ý
  ( Ó  Äž  §‰E ­‰E ³‰E< ð

¿#‰E ó¿#‰E ö¿#‰E 
 ˆ  Š 
( üÌJ í   œÓüå·ü­ïüØ&ü¾Þüå&…B‡8,‡8ÿCFœØ‰Eî‰EÙ‰EĉE¯‰E¤‰EÿCCïoœå‰Eë‰EÖ‰EÁ‰E¬‰E¡‰EÿC@ÿC5
¹§þ«
start_gradÁÿ½¢²­end_gradÁó ½
²­tnÿCT­ ÿCü™ 

L™ 
ÒO<, · ¾ ÕüëS…B …B,€ ÿC£ÿC=#º
(‰E
‰EÍÛüÀ‰EÜ Cïo„‚9
  Š„ý  ŒäüÅNÿC‰E Ö‰E ݉E ä‰E­‰E¡‰E½3²7­;nŒ•\•6B ÎwR <Ìw
qYÌw Ÿ‰E ¥„¨©  
 °ÌwÎw6 
B ÎwR   <Ìw
q YÌw ± ‰E · º

 
‰E Â
ü‹9

L
ä² \3 à ÊåüÙqÿCÎwï‰EÎwÎwÎw '‰EÎwÎwÎw‰EüÎwûhexÁkŒ  ¹ ¼”¬
 ¼zTF8- ½ÄèüCÿC$‰E ‰E°‰E¤‰E˜Ã!BÜ,‰E‰E8
?t•
œÏM:¬• ©Ü´‰E‰E8
?Æ~I6¬º ÎÜÙ 

‰E  ‰E8
?Æ~
I 6 ¬ß ó 
üý~

¼zv š0 ú ýóüÉ´ ÿCó ÿCÚÄå‰Eâ‰Eâ‰EÒ‰E‰E‰Et‰E*‰E*‰E^rhsÁdÜʼnE‰E8
?
žÏM:¬Ë ßÜê‰E,ÿ‰E8
?šƒJ7¬ð Ü ,

‰E  ‰E8
?t•šƒ
J 7 ¬• © 
ü³~

¼zx 0 ° ³ôüÿ´ ÿC©ÄĉEâ‰Eâ‰EÒ‰E‰E‰Et‰E)‰E)‰E^³b‰E Ë ÿ‰E;  ÿ‰EZ‰E Õ ‰E Ø ÿ‰E;  ÿ‰EZ‰E â   ‰E
å ÿ‰E ; 
 ÿ‰E Z
‰E ï  ü /

¼zo0 ð ó öü– ] ÿC¸ Ī ‰EΉEΉEá‰Ex‰ExüЉE ‰E üŠ1õY{Œ˜2 ®¯%40º67>„´5 ·¸(å43º6:º6AHŒÃ8 ÁÂ%Æ50º67>,§O ß%‡80‰E7>ïO ߈+‡86‰E=‰ED‰EKR %ï;0º67>üæ.; ÙÉ=Ú+ÙÙÚ²(݈ E_æ:¬É8µÉ=g 
ìbry)KP¥¸ÄÊßÀ¤,“M¦,¸M·&ì4¿M®'ç4ÇMÁ(ª ,ìMßI¡,óMÊJžc¤e¤ð\ÿ0w¤ð\Œ2 y¤|è3{¤|þ4 }¤Á ÀÃÓ ÁÃâ Âü«
 ØÞÆÜÞ´*d‰ûÞû&ŒçĤ²(”ñ.Ù¤²(Ú¤Ñ)D®íÞ¿#©­ü—PüDA This is a library for controlling colors and formatting, such asÁüE=: red bold text or blue underlined text, on ANSI terminals.Áƒúú”‹ ## Basic usageÁžúü¢@= There are three main types in this crate that you need to beÁüã=: concerned with: [`AnsiString`], [`Style`], and [`Color`].Á¡úü¥LI A `Style` holds stylistic information: foreground and background colors,ÁüòJG whether the text should be bold, or blinking, or other properties. TheÁü½NK [`Color`] enum represents the available colors. And an [`AnsiString`] is aÁüŒ# string paired with a [`Style`].Á°úü´74 [`Color`] is also available as an alias to `Color`.ÁìúüðJG To format a string, call the `paint` method on a `Style` or a `Color`,Áü»JG passing in the string you want to format as the argument. For example,Áü†&# here’s how to get some red text:Á­ú ```Áü¹! use nu_ansi_term::Color::Red;ÁÛúüß>; println!("This is in red: {}", Red.paint("a red string"));ÁÜš¦úüªQN It’s important to note that the `paint` method does *not* actually return aÁüüOL string with the ANSI control characters surrounding it. Instead, it returnsÁüÌLI an [`AnsiString`] value that has a [`Display`] implementation that, whenÁü™ OL formatted, returns the characters. This allows strings to be printed with aÁüé HE minimum of [`String`] allocations being performed behind the scenes.Á²
úü¶
IF If you *do* want to get at the escape codes, then you can convert theÁü€ FC [`AnsiString`] to a string as you would any other `Display` value:ÁÇ ú ÜšüÓ !íšõ úüù ;8 let red_string = Red.paint("a red string").to_string();Á Üš½ úÁ úüÅ 41 ## Bold, underline, background, and other stylesÁú úüþ NK For anything more complex than plain foreground color changes, you need toÁüÍ
NK construct `Style` values themselves, rather than beginning with a `Color`.ÁüœLI You can do this by chaining methods based on a new `Style`, created withÁüéLI [`Style::new()`]. Each method creates a new style that has that specificÁô¶ property set. For example:ÁÕúÜšäá use nu_ansi_term::Style;Áþúü‚)& println!("How about some {} and {}?",Áü¬/, Style::new().bold().paint("bold"),ÁüÜ:7 Style::new().underline().paint("underline"));Á<—ÜšŸúü£MJ For brevity, these methods have also been implemented for `Color` values,ÁüñOL so you can give your styles a foreground color without having to begin withÁÜÁ an empty `Style` value:ÁÝúÜšüé,) use nu_ansi_term::Color::{Blue, Yellow};Áúüš(% println!("Demonstrating {} and {}!",ÁüÃ,) Blue.bold().paint("blue bold"),Áüð;8 Yellow.underline().paint("yellow underline"));Á¬úü°B? println!("Yellow on blue: {}", Yellow.on(Blue).paint("wow!"));ÁÜšûúüÿRO The complete list of styles you can use are: [`bold`], [`dimmed`], [`italic`],ÁüÒXU [`underline`], [`blink`], [`reverse`], [`hidden`], [`strikethrough`], and [`on`] forÁ´« background colors.ÁÂúüÆHE In some cases, you may find it easier to change the foreground on anÁüGD existing `Style` rather than starting from the appropriate `Color`.Áü×,) You can do this using the [`fg`] method:ÁúÜšäë¥ü­2/ use nu_ansi_term::Color::{Blue, Cyan, Yellow};ÁàúüäSP println!("Yellow on blue: {}", Style::new().on(Blue).fg(Yellow).paint("yow!"));Áü¸PM println!("Also yellow on blue: {}", Cyan.on(Blue).fg(Yellow).paint("zow!"));Á<‰Üšúü•EB You can turn a `Color` into a `Style` with the [`normal`] method.ÁüÛIF This will produce the exact same `AnsiString` as if you just used theÁü¥OL `paint` method on the `Color` directly, but it’s useful in certain cases:ÁüõIF for example, you may have a method that returns `Styles`, and need toÁü¿WT represent both the “red bold†and “red, but not bold†styles with values ofÁü—RO the same type. The `Style` struct also has a [`Default`] implementation if youÁüê,) want to have a style with *nothing* set.Áú<›Üšä£ë¥üÀ!íšâúüæ1. Red.normal().paint("yet another red string");Áü˜:7 Style::default().paint("a completely regular string");ÁÜšÛúßú´ã ## Extended colorsÁúúüþOL You can access the extended range of 256 colors by using the `Color::Fixed`ÁüÎ LI variant, which takes an argument of the color number to use. This can beÁü›!.+ included wherever you would use a `Color`:ÁÊ!ú<Î!ÜšüÖ!# use nu_ansi_term::Color::Fixed;Áú!úüþ!/, Fixed(134).paint("A sort of light purple");Áü®">; Fixed(221).on(Fixed(124)).paint("Mustard in the ketchup");Á<í"Üšõ"úüù"IF The first sixteen of these values are the same as the normal and boldÁüÃ#OL standard color variants. There’s nothing stopping you from using these asÁü“$JG `Fixed` colors instead, but there’s nothing to be gained by doing soÁ\Þ$ either.Áê$úüî$LI You can also access full 24-bit color by using the `Color::Rgb` variant,Á
¨   ë
Îì·ï Õ§·ï
·ï± ò+-¿ <closure_kind>Á
<closure_signature>Á
<upvars>Á

 
·ï½ï  ·ïüÁOœ œº6 ·ï½ï
¨ ç
¹ð ÑÊð
·ï± î#%´ÕüŠJG The code to send to reset all styles and return to `Style::default()`.Á,à ÿÿ‡8ü‹X¬ŽžŸ ž‡8 Ÿ·ï½ï¨ º¹ð ¤Êð
·ï± Á#%ü—&X¬š& ¡  ‡8 ¡·ï½ï¨ Æ&¹ð °&ÊðD³&
·ï$Ç&± Í&#%TÞ8º6ü£B#üï8FC The prefix bytes for this style. These are the bytes that tell theÁüº941 terminal to use a different color or font style.Áó9útû9 # ExamplesÁŽ:ú<:Üšü¢:)& # #[cfg(not(feature = "gnu_legacy"))]Á<Ð: # {ÁüÜ:+( use nu_ansi_term::{Style, Color::Blue};ÁŒ;úü”;(% let style = Style::default().bold();ÁÌÁ; assert_eq!("\x1b[1m",Áüß;+( style.prefix().to_string());Á<úä—< let style = Blue.bold();Áä¸< assert_eq!("\x1b[1;34m",ÁüÙ<+Üù‰=úü‘=! let style = Style::default();Á”·= assert_eq!("",ÁüÎ=+Üù<þ= # }Á<Š>ÜšD> Áü£>.+ # Examples with gnu_legacy feature enabledÁüÖ>85 Styles like bold, underlined, etc. are two-digit nowÁ“?ú<?Üšü§?$! # #[cfg(feature = "gnu_legacy")]Á<Ð?¶øüÜ?+ÇøŒ@úü”@(ˆùÔÁ@ assert_eq!("\x1b[01m",Áüà@+ÜùAúä˜Aœúì¹A assert_eq!("\x1b[01;34m",ÁüÛA+Üù<BÔû<—BÜš4°Bº64
…&ü‹L.üéBLI The infix bytes between this style and `next` style. These are the bytesÁüºCKH that tell the terminal to change the style to `next`. These may includeÁüŠDNK a reset followed by the next color and style, depending on the two styles.ÁÝDútåDÓ÷<øDÜšü„E)„ø<²E¶øü¾E,) use nu_ansi_term::{Style, Color::Green};ÁïEúü÷E(ˆùÔ¤F assert_eq!("\x1b[32m",ÁüÃF63 style.infix(Green.bold()).to_string());ÁþFúü†G let style = Green.normal();Á̪G¹ùüÈG6†ƒƒHúü‹H!û”±H«ûüÈH/, style.infix(style).to_string());Á<üHÔû<ˆIÜšü”I.ƒüüÇI8»ü<„JÜšüJ$–ý<¹J¶øüÅJ#é×íJúüõJÒƒÔ™Køýü¸K6†ƒ<óKÔû<ÿKÜš,˜Lº6º6å4
#'ó ,'üÎQ#üáLIF The suffix for this style. These are the bytes that tell the terminalÁü¯M52 to reset back to its normal color and font style.ÁéMútñMÓ÷„Nú<ŒNÜšü˜N,“‚ÉNúüÑN(ˆùÌþN assert_eq!("\x1b[0m",ÁüœO+( style.suffix().to_string());ÁÌOúüÔO&# let style = Green.normal().bold();ÁÌÿOãˆüP+†‰ÍPúüÕP!û”ûP«ûü’Q+†‰<ÂQÜš4ÛQº6Æ5
Â'TR‡8ì»Uü£REB The prefix bytes for this color as a `Style`. These are the bytesÁüíRB? that tell the terminal to use a different color or font style.Á´Súü¼S@= See also [`Style::prefix`](struct.Style.html#method.prefix).ÁTút‰TÓ÷œTú<¤TÜšü°T#éרTúÔàTâ‚üÿT+( Green.prefix().to_string());Á<¯UÜš4ÂU‡84
$ÉUüÓY(ü„VLI The infix bytes between this color and `next` color. These are the bytesÁüÕVGD that tell the terminal to use the `next` color, or to do nothing ifÁì¡W the two colors are equal.ÁÃWúüËW>; See also [`Style::infix`](struct.Style.html#method.infix).ÁŽXút–XÓ÷©Xú<±XÜšü½X+( use nu_ansi_term::Color::{Red, Yellow};Á
 `£cbufÁ `àB¤GS
¤Ö¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
ŸÈŸÈ Èœ éBL Ã^
$Ä^± Ê^ÜÃ_å4!Åc!üå_4è_¥¦§ ¥å4 ¦ c cˆ¢cµ
 `£c˜ `àB¤GS
§´™  ì_
!$í_± ó_ì¨`T»`äœdÆ5$Åc$ü¿d4Âd¨©ª ¨Æ5 © c cˆ¢cµ
 `£c˜ `àB¤GS
ª´™# Æd#
$$Çd± Íd$±MFFtFwFiFlFLÑM,ÕMßÊT˜
º6+,-./01234567¬Ž ü©
/, Creates a new Style with no properties set.ÁÝ
ú
Ó÷ø
ú<€ ÜšäŒ ë¥­ úìµ  let style = Style::new();Áü× &# println!("{}", style.paint("hi"));Á< Üš º6**
+üÞ/üÊ HE Returns a [`Style`] with the `Style.prefix_with_reset` property set.Á
ú
Ó÷²
ú
ÜšäÆ
ë¥ç
úüï
2/ let style = Style::new().reset_before_style();Áü¦'$ println!("{}", style.paint("hey"));ÁÜš”ë« «º6º6* þ*
,$ÿüÝ!üî1. Returns a `Style` with the bold property set.Á¤úÓ÷¿úÜšäÓë¥ôúüü$! let style = Style::new().bold();Áü¥'áÜš¬ ¬º6º6* ï*
-üÈ#üÕ30 Returns a `Style` with the dimmed property set.Áút•Ó÷¨úÜšä¼ë¥Ýúüå&# let style = Style::new().dimmed();Áü'$ println!("{}", style.paint("sup"));ÁÜš­ ­º6º6* Ü*
.ü½#üÄ30 Returns a `Style` with the italic property set.Áüút„Ó÷úÜšä«ë¥ÌúüÔ&# let style = Style::new().italic();Áüÿ-* println!("{}", style.paint("greetings"));ÁÜš® ®º6º6* Ñ*
/üº&ü¹63 Returns a `Style` with the underline property set.ÁôúÓ÷ú<—Üšä£ë¥ÄúüÌ)& let style = Style::new().underline();Áüú/, println!("{}", style.paint("salutations"));ÁÜš¯ ¯º6º6* Ñ*
0ü¨"ü¼2/ Returns a `Style` with the blink property set.ÁÓ÷úÜšäšë¥»úüÃ%" let style = Style::new().blink();Áüí*' println!("{}", style.paint("wazzup"));ÁÜš° °º6º6* »*
1ü™ $ü¢41 Returns a `Style` with the reverse property set.ÁÛúÓ÷öúÜšäŠë¥«úü³'$ let style = Style::new().reverse();Áüß)& println!("{}", style.paint("aloha"));Á< Üš± ±º6º6* ® *
2ü‹##ü—!30 Returns a `Style` with the hidden property set.ÁÏ!út×!Ó÷ê!ú<ò!Üšäþ!륟"úü§"&# let style = Style::new().hidden();ÁüÒ"(% println!("{}", style.paint("ahoy"));Á<ÿ"Üš4˜#² ²º6º6* Ÿ#*
3$ #ü‡&*ü‡$:7 Returns a `Style` with the strikethrough property set.ÁÆ$útÎ$Ó÷á$ú<é$Üšäõ$륖%úüž%-* let style = Style::new().strikethrough();ÁüÐ%&# println!("{}", style.paint("yo"));Á<û%Üšl”&³ ³º6º6* ¢&*
4$£&üŸ)2ü‘'=: Returns a `Style` with the foreground color property set.ÁÓ'útÛ'Ó÷î'ú<ö'Üšü‚(%" use nu_ansi_term::{Style, Color};Á¬(úü´(/, let style = Style::new().fg(Color::Yellow);Áüè(&ùž<“)Üš¬)´ ´º6‡8º6* ¯)*
5$°)®J/üÆ,2ü·*=: Returns a `Style` with the background color property set.Áù*út+Ó÷”+ú<œ+Üšü¨+%€¸Ò+úüÚ+-* let style = Style::new().on(Color::Blue);ÁüŒ,)& println!("{}", style.paint("eyyyy"));Á<º,ÜšÓ,µ µº6‡8º6* Ö,*
6$×,ÀZ0ì®0üÞ-HE Return true if this `Style` has no actual styles, and can be writtenÁü«.# without any control characters.ÁÓ.útÛ.Ó÷î.ú<ö.Üšä‚/륣/úü«/30 ass
,PQ¹$T/PRª ,NßPT¡,UÊPUDo§PVo»PXToOwnedÁ<²PYצ `PZ”›ìŒd?qs´afl}Z\DFL 9üÔjî\¤]\]ÎìÉ= ÝÉ=îà²É=¿cÉ=³†=^Ù^ÙIK\¼Å¸ ¸†=†=[ Î[
^îÉ=üØ
rü²DA Cloning an `AnsiGenericString` will clone its underlying string.Á÷úÓ÷Š úÜšü– ! use nu_ansi_term::AnsiString;Á¸ úü¼ :7 let plain_string = AnsiString::from("a plain string");Áü÷ ,) let clone_string = plain_string.clone();Áü¤
+( assert_eq!(clone_string, plain_string);Á
Üšî`¤aa`‰å á
™åä
§å
¶åT¿ ƒ>bÙbÝ
.0`üÑ + ¹ ¹ƒ>ƒ>_ Ú _
bîÉ= ¼àüæEB An ANSI String is a string coupled with the `Style` to display itÁ”¬ in a terminal.Á¿úüÃC@ Although not technically a string itself, it can be turned intoÁü‡$! one with the `to_string` method.Á¬úÓ÷¿úÜšüË!Öæüí!íšúü“/, let red_string = Red.paint("a red string");Áüà println!("{}", red_string);ÁÜšëúÜšü÷!Öæúü:çÜšIHîddÁ@ôÜü—DA An `AnsiByteString` represents a formatted series of bytes. UseÁüÜ@= `AnsiByteString` when styling text with an unknown encoding.ÁZHîffÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úî‰fµüÙîhši¤jhijÍìÒ? âÎìÌ? åÌ?îè²Ì?æÒ?»¾¿BorrowedÁÀˆÁÂOwnedÁÈ¢ÓÛ?'°UFîÌ?„±¿cÌ?³ƒ?këkÞÆÈÃÅhüð-Ò?ƒ?gg
kîÒ?Ì?inputÁ,øü³hîm¤nmn‰å ¼™å¿§å¶åTƒ>opqrtv¸13müÄ'ì¢ Directly access the styleÁLѺ ºƒ> ºº6l Ûl
oîÉ=ü·-ü%" Directly access the style mutablyÁl¾» »ƒ> »º6l Ìl
pîÉ=Ô¸ üŠ )& Directly access the underlying stringÁ4¿ ¼ ¼ƒ> ¼É=l Æ l
qîÉ=üê$Düü!74 Produce an ANSI string that changes the title shownÁì¸" by the terminal emulator.ÁÚ"útâ"Ó÷õ"ú<ý"Üšü‰#(% use nu_ansi_term::AnsiGenericString;Áü¶#<9 let title_string = AnsiGenericString::title("My Title");Áü÷#! println!("{}", title_string);Á<$Üšü©$<9 Should produce an empty line but set the terminal title.Á,ñ$šƒ>lšsslÍìôû ÷$æôû»¾¿¶ñÀˆÁÂ×ñÈ¢ÓÛ?'°UFîÉ=%
rîÉ=ôû¾ ú$ü³*Tü'96 Cause the styled ANSI string to link to the given URLÁÛ'útã'Ó÷ö'ú<þ'ÜšüŠ(!íš°(úü¸(UR let link_string = Red.paint("a red string").hyperlink("https://www.example.com");Áü’)  println!("{}", link_string);Á<·)ÜšüÃ)85 Should show a red-painted string which, on terminalsÁü€*.+ that support it, is a clickable hyperlink.ÁLº*ƒ>ôûƒ>lšuul˜ü Ä*©ü„ö*
tîÉ=ôû$Ë*‰&Ñ*,.ü™,&üê+*' Get any URL associated with the stringÁT ,½ ½ƒ>Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ½É=l «,l
vîÉ=$¬,Äö0ü†0LI A set of `AnsiString`s collected together, in order to be written with aÁüÓ0" minimum of control characters.ÁkHîxx“A1üÿ1Jü¯163 A function to construct an `AnsiStrings` instance.Á|Hz z
ÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úzÙÙÚ²(݈ E_æ:¬É8µz˜2
yÆd52äß3üë2A> A set of `AnsiByteString`s collected together, in order to beÁü­31. written with a minimum of control characters.ÁHî||ÙÙÚ²(݈ E_æ:¬É8µî‰fø3üñ4Vü4:7 A function to construct an `AnsiByteStrings` instance.ÁžH~ ~
ÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©ú~‰fÙÙÚ²(݈ E_æ:¬É8µ~‰fŽ5
}Æd=3T‡6º6€üñ6«ü˜6DA Paints the given text with this color, returning an ANSI string.Á.\á6,ø6º6Ò?ƒ?ƒƒáñ ‚7ññ …7òˆ7ò<7žò„à7‹óT8
îÒ?Ì?$Ÿ7•ó,¥7þ6SUXZTª9‡8…üò;«ü»9Dþ‰ü„:GD This is a short-cut so you don’t have to use `Blue.normal()` justÁ¬Ð: to get blue text.Áê:ú<ò:Üšüþ:" use nu_ansi_term::Color::Blue;Áü¥;,) println!("{}", Blue.paint("da ba dee"));Á<Ö;Üš.\â;,ù;‡8Ò?ƒ?ˆˆáñ ƒ<ññ †<ò‰<ò<Ž<žò„á<‹óT=
îÒ?Ì?$ <•ó,¦<ÿ;SUXZüæ>(Á@‹Åcë>ü•?4˜?¾¿À ¾Á@ ¿ c cˆ¢cµ
 `£c˜ `àB¤GS
À´™ œ?
î$?± £?ܲ@»À| @¼š@îÚðŽ·@üàAKüÔ@HE Write an `AnsiByteString` to an `io::Write`. This writes the escapeÁü¡A:7 sequences for the associated `Style` around the bytes.ÁDçAÁ ÁÚð ¨ֿٿڿ«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
ßßœà ¬
ÑøÿËO ŸŒ¨ ƒBŒÍ쎕 ðAŸ!Ž•tóA
ŽîŽ•$„B ŠB24ü€C€î¤‰å ‰C™åŒC§å<‘C¶åTÝCà îÉ=‰f\ôCƒ>“…CDFüÂDX\ÅDPÃÄ Ãƒ> Ĩֿٿڿ«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
Ș©¨ ñDÎìȘ ÑD§Ș”ÔDȘ¨É=DÝD
îÉ=Ș$òD øDGIüÜIYdßIPÅÆ Ń> ÆȘΘ¨ ŒJΙ ìIß™”ïIï™DøI
îÉ=Ș$J “J57üëK)“A™ÅcðKü›L4žLÇÈÉ Ç“A È c cˆ¢cµ
 `£c˜ `àB¤GS
É´™ ¢L
î$£L± ©Lä¸M»À|¦M¼ Mœ½MüþNKüÛMGD Write `AnsiByteStrings` to an `io::Write`. This writes the minimalÁü§NC@ escape sequences for the associated `Style`s around each set ofÁTïN bytes.ÁD…OÊË Ê†ˆ ËŽ•”•š¨ ¡Oš·– ŽOÈ–t‘O
œîŽ•$¢O ¨O*,üžP Ÿ ‰å §P™åªP§å<¯PµßÉ=É=LÂP¶åTˆQÏ—\ŸQß?¡£PCEŸü²QYdµQPÌÍ Ìß? ÍȘΘž¨¢¢ âQžΙ ÂQß™”ÅQï™DÎQ
¡îÉ=Ș$ãQ éQ57„šR<¡NL®N,²N§×
 `¥¦L  D §§ÎìüÔ §ã£ã£¨©ª«¨©ª«Îì루”) £¤Íì룩\@ Á¤«ªŒ) $. §§T@ ,E §§üQH LT ÎÏ Îë£äÈäÈ ArgumentsÁæÈtemplateÁ `çÈÀ `üöMõô]TdÏÖ¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
ɤ§ ^ §
ªë£$c ×i üŸC L¢ ÐÑ Ðë£ Ñ«¤ž¦§ ¬ §
«ë£ ¾ · üæ) î­­ÑA®¯°±¨©ª«±°ë L– $› ¬¬ ¬¬…šüÉG LÌ ÒÓ ÒÑAäÈäÈÓ¤æÈ椠`çÈÀ `üöMõô]TdÓÖ¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
ÑA©¬ Ö ¬
°î ×á üÇB LÊ ÔÕ ÔÑA ÕÑA¨‰ª¬ Ô ¬
±î ¾ ß üÔ- »À ¼¼ î³³æA´µ·¨©ª«·Ù  $ ²²‰fTž ²²å•üÀG Là Ö× ÖæAäÈäÈÓ¤æÈ椠`çÈÀ `üöMõô]Td×Ö¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
æA©² Í ²
î ר üÂB LÅ ØÙ ØæA ÙæA¨š®² Ï ²
·î ¾ Ú D¯O$³OÀÁžTc¸ºð\!w¸»ð y¸»ß4CúH¸½öPªB¸¾r,eé!¸¿tsudf,3t;IDK:„Z,üÅ[ümWT Return a substring of the given AnsiStrings sequence, while keeping the formatting.Á¯HÚÛ ÚÙÙÚ²(݈ E_æ:¬É8µÛªBªBö­B˜÷<®B÷<9)
-ÜnLÄÄû&ÇØ Ȭ'ɺ'PëóýŽàs©úçEçEèEGlobalÁ ¿±‡§í# ÷
À¹åstrsÁ$ñüÜ,üZW Return a concatenated copy of `strs` without the formatting, as an allocated `String`.ÁÁHÜÝ ÜÙÙÚ²(݈ E_æ:¬É8µÝúHúHßûHÁ‘4Ý­f‰úM÷ ñ
Áâ³üÔ 0ü÷\Y Return the unstyled length of AnsiStrings. This is equaivalent to `unstyle(strs).len()`.ÁÓHÞß ÞÙÙÚ²(݈ E_æ:¬É8µß î 
Ââ³$ÁOLËO,ÏO¡,ÊÄÅ×# `ÄÆœ(LÌæü)PM Styles have a special `Debug` implementation that only shows the fields thatÁüzPM are set. Fields that haven’t been touched aren’t included in the output.ÁËúüÏIF This behaviour gets bypassed when using the alternate formatting modeÁ¼™ `format!("{:#?}")`.Á±úüµ-* use nu_ansi_term::Color::{Red, Blue};Áüã?< assert_eq!("Style { fg(Red), on(Blue), bold, italic }",Áü£B? format!("{:?}", Red.on(Blue).bold().italic()));Áº6ÈÀcÈü†6àáâ àº6 á c cˆ¢cµ
 `£c˜ `àB¤GS
â´™Ç Ç
È×ÈšðɲðÉÏðÉÉÈÉ ´™…ò  c cˆ¢cµ
 `£c˜ `àB¤GS
„×ODßOØÜíû¿#Ê̪ ,ßÊÍIformatÁ4*ÊÏß4:úHÊÐ,D \JL,"46t2'l¡…BÒÓÔÕÖü.üµEB Creates a new [Gradient] with two [Rgb] colors, `start` and `end`ÁšÿCÿC…BÑÑÜr¹Ý3þæ3üå=‡8‡8…BÑÑ
Ó¹X7þa7üåü¢>; Computes the [Rgb] color between `start` and `end` for `t`Áìã ã…BœEÿCÑ ïÑ
Ô¿ öüë#ü·! Returns the reverse of `self`Á<øä ä…B…BÑ Ñ
Õ$ üÄ ?åæ å…B æC»¶Ñ Ñ Ñ
ÖtextÁ$Ø êŒô
Öšðײð×Ïð××Ö×»¶»¶ªs œEìtü¤
`åHç ç…B…B»¶ É

ØÌÅ
®
À
ŒíØšðÙ²ðÙÏðÙÙØÙ´ÇÌǪsªsŒšôÀè èC‰EÚ ÒÚ
Û¼Ñ÷HÜÜã£üÑZÜã£ã£ÝÝÝüï:é éë£C»¶Ü Ü
Ýë£ê4‰DñO<ÿOƒPóôõöø¿4 ßáß4úHßâÆÜßïÞ´* IûßðÞ,Y[tLD†ÿCäåæçèéêüÅ-ì• Creates a new [Rgb] colorÁÒ‰E‰E‰EÿCãã¼z½¯:²¸:­Á:üÙ'ü™-* Creates a new [Rgb] color with a hex codeÁDæÎwÿCãã
å€{=üÐ+»¶ÿCãã
æ€{çüä /üª 52 Creates a new [Rgb] color with three [f32] valuesÁDë œEœEœEÿCãã
ç½ ô ² ü ­ ü üË
# Creates a grayscale [Rgb] colorÁ$މEÿCãã
èÃC>ü…üÊ63 Creates a grayscale [Rgb] color with a [f32] valueÁDŒœEÿCãã
éà üì/üŸHE Computes the linear interpolation between `self` and `other` for `t`Á$óê êÿCÿCœEÿCã øã
ê¹
,ÿ¿ ŒüïÿCìëìü•(‡EÿCëë
ìüä"ÿCîëîü+$šEÿCíí
î¤èœ‚ IÔ—ÿCòÝòü¸9ë ëÿCC»¶ñ Ëñ
òêüÉ-ßìí ìÿC íÿCÿC ß
óJ@³T@üÿ-<ˆßîï îÿC ïÿCÿC 
ôžB³¨Büµ+ßðñ ðÿC ñœEÿC É
õijÏü– %ßò òÿCÿC ¯ 
öõæDüõ ÿCøùÆ Ç ù\œ!4¡!÷÷ÿCü´!&·!ÿCÿCÿCÿCÆ ÷÷
ù$»!³Á!üƒ"!8óóÿCûüÆ Ç ü\«"4°"úúÿCüÃ"'Æ"ôÿC ôÿCÿCÄEÆ ú Õ"ú
ü8$Ê"³Ð"ü’#!8õõÄEþÿÆ Ç ÿ\º#4¿#ýýÿCüÒ#&Õ#ÄEÿCÄEÿCÆ ýý
ÿ8$Ù#³ß#ü $"8ö8÷÷öáEÆ Ç \É$4Î$ÿCüá$'ä$øáE øÿCáEÄEÆ  ó$
88$è$³î$ü¯% ÿC„ïï\Ö%4Û%ƒƒÿCüî%&ñ%ÿCÿCÿCÿC
$õ%³û%ü½&!8ùùÿC‡ˆïïˆ\å&4ê&ÿCüý&'€'úÿC úÿCÿCÄEï '
ˆ8$„'³Š'üÌ'!8ûûÄEŠïï\ô'4ù'ÿCüŒ(&(ÄEÿCÄEÿCï
8$“(³™(üÚ("8ü8ýýüáEŽïïŽ\ƒ)4ˆ)ŒŒÿCü›)'ž)þáE þÿCáEÄEïŒ ­)Œ
Ž88$¢)³¨)üé) ÿCÓðÔð\*4•*ÿCü¨*&«*ÿCœEÿCœEÓð
$¯*³µ*üû*!8ÿÿÿC“ÓðÔð\£+4¨+ÿCü»+'¾+ÿC œEÿC¾FÓð Í+
8$Â+³È+üŽ,!8ÄE–ÓðÔð\¶,4»,ÿCüÎ,&Ñ,ÄEœEÄEœEÓð
8$Õ,³Û,ü -"88ƒƒáE™šÓðÔðš\É-4Î-˜˜ÿCüá-'ä-áE œEáE¾FÓð˜ ó-˜
š88$è-³î-ü³. œEœÓðÔð\Ú.4ß.ÿCüò.&õ.œEÿCœEÿCÓð
$ù.³ÿ.üÅ/!8œEŸ ÓðÔð \í/4ò/žžÿCü…0'ˆ0œE ÿCœEÄEÓðž —0ž
 8$Œ0³0üØ0!8¾F¢£ÓðÔð£\€14…1¡¡ÿCü˜1&1¾FÿC¾FÿCÓð¡¡
£8$Ÿ1³¥1üê1"8ˆ8ˆ•G¥¦ÓðÔð¦\“24˜2¤¤ÿCü«2'®2Š•G ŠÿC•GÄEÓ𤠽2¤
¦88$²2³¸2Üý2ÿC¨©Ð Ñ ©\Ÿ34¤3§§ÿCä·3º3ÿCÿCÐ §§
©$¾3äù38ÄE«¬Ð Ñ ¬\œ44¡4ªªÿCä´4·4ÄEÄEÐ ªª
¬8$»4PVEüª/:7 Like `AnsiString`, but only displays the style prefix.Áå/úüé/LI This type implements the `Display` trait, meaning it can be written to aÁü¶0NK `std::fmt` formatting without doing any extra allocation, and written to aÁü…1<9 string wit
 `£c˜ `àB¤GS
´™µk2µ
űˢEü³2C@ Like `AnsiString`, but only displays the difference between twoÁ\÷2 styles.Áƒ3úü‡3LñüÔ3N×ñü£4<¯òüà452 [`Style::infix`](struct.Style.html#method.infix).Á5,¿5å4…>Á¬m§ ¸¹ºº6º6å4¢E8º6º6å4··
¸,Å5··º6,Ì5··º6(lŸ5
å404å4½Ù½OQ å4å4¼lŸ5¼
½š m¦5ˆå4(n¬5å4ÀÀcÀ"$ å4  c cˆ¢cµ
 `£c˜ `àB¤GS
´™¿n¬5¿
ÀÅ±ËøEüÕ5:7 Like `AnsiString`, but only displays the style suffix.Á6úü”6Lñüá6N×ñü°7<¯òüí774 [`Style::suffix`](struct.Style.html#method.suffix).Á64Î8Æ5³sî,þ‘Âú6Æ5øE4º6Æ5ÁÁ
Â,Õ8ÁÁº6(o®8
ŠÆ504ŠÆ5ÆÙÆOQ Æ5Æ5Åo®8Å