Files
ServerSync/lib/rich/__pycache__/_win32_console.cpython-314.pyc

270 lines
33 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<EFBFBD>X<00><00><>a<00>RPt[0tRt^RIt^RIt^RIHtRt]^k]PR8Xd]P!]P4tM ]
!] R24h^RI t ^RIH t HtHt^RIHtHtHtHt^RIHt^RIHtRQt^t]P4t!R R
]4t!R R ]4t!R R] 4t!RR]P4t ]PBPDt#]PH.]#n%]PL]#n']3RRllt"]PBPPt)]PL]PT.])n%]PV])n'RRlt(]PBPXt-]PL]P\]PH]!]],]4]P^!]PH4.]-n%]PV]-n'RRlt0]PBPbt2]PL]Pf]PH]!]],]4]P^!]PH4.]2n%]PV]2n'RRlt1]PBPht5]PL]Pf.]5n%]PV]5n'RRlt4]PBPlt7]PL]P^!]4.]7n%]PV]7n'RRlt6]PBPpt9]PL]!]],]4.]9n%]PV]9n'RRlt8]PBPtt;]PL]P^!] 4.];n%]PV];n'RR lt:]PBPxt=]PL]P^!] 4.]=n%]PV]=n'R!R"lt<]PBP|t?]P<>.]?n%]PV]?n'R#R$ltA!R%R&4tB] R'8XEd<>]"!4tC^R(IDHEtE]E!4tF]B!]P<>4tH]HP<48>R)4]!R*R+R,7tJ]P<>!R-4tL]FP<46>R.4]FP<46>R/4]FP<46>R04]FP<46>R14]FP<46>R24]FP<46>R34]FP<46>R44]FP<46>R54]FP<46>R64]FP<46>R74]FP<46>R84]FP<46>R94]FP<46>R:4]FP<46>R;4]FP<46>R<4]FP<46>R=4]FP<46>R>4]FP<46>4]HP<48>4]HP<48>4]HP<48>R?4] P<>!^4]HP<48>4]HP<48>R@4] P<>!^4]HP<48>4]HP<48>RA4] P<>!^4]HP<48>4]HP<48>4]HP<48>4]HP<48>RB4] P<>!^4]HP<48>4]HP<48>4]HP<48>4]HP<48>RC4] P<>!^4]HP<48>4]FP<46>4]FP<46>RD4]FP<46>RE4]HP<48>RF4] P<>!^4]HP<48>^4]HP<48>RG]P<>!RH44]HP<48>4] P<>!^4]HP<48>4] P<>!^4]FP<46>RI4]HP<48>RF4] P<>!^4]HP<48>^4]HP<48>RJ]P<>!RH44] P<>!^4]HP<48>4] P<>!^4]FP<46>RK4]HP<48>RL]P<>
The API that this module wraps is documented at https://docs.microsoft.com/en-us/windows/console/console-functions
N)<01>Any<6E>win32z can only be imported on Windows)<03> Structure<72>byref<65>wintypes)<04>IO<49>
NamedTuple<EFBFBD>Type<70>cast)<01> ColorSystem)<01>Stylec<00><00>]tRt^tRtR#)<03>LegacyWindowsError<6F>N)<05>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__static_attributes__r<00><00>:/tmp/pip-target-qd_sq_1j/lib/python/rich/_win32_console.pyrrs<00><00>rrc<00>La<00>]tRt^!toRt]V3RlRl4tV3RltRtVt R#)<07>WindowsCoordinatesz<73>Coordinates in the Windows Console API are (y, x), not (x, y).
This class is intended to prevent that confusion.
Rows and columns are indexed from 0.
This class can be used in place of wintypes._COORD in arguments and argtypes.
c<00>$<<01>V^8<>dQhRRRS[/#)<04><00>valuer<00>return)<01>COORD)<02>format<61> __classdict__s"<22>r<00> __annotate__<5F>WindowsCoordinates.__annotate__,s<00><><00>
+<2B>
+<2B>3<>
+<2B><05>
+rc <0C>B<00>\VPVP4#)aConverts a WindowsCoordinates into a wintypes _COORD structure.
This classmethod is internally called by ctypes to perform the conversion.
Args:
value (WindowsCoordinates): The input coordinates to convert.
Returns:
wintypes._COORD: The converted coordinates struct.
)r<00>col<6F>row)<02>clsrs&&r<00>
from_param<EFBFBD>WindowsCoordinates.from_param+s<00><00><15>U<EFBFBD>Y<EFBFBD>Y<EFBFBD><05> <09> <09>*<2A>*rc<00>2<<01>V^8<>dQh/S[;R&S[;R&#)rr$r#<00><01>int)rrs"<22>rr r!!s<00><><00><00>
<0A>H<EFBFBD><01>
<0A>H<EFBFBD>rrN)
rrrr<00>__doc__<5F> classmethodr&<00>__annotate_func__r<00>__classdictcell__<5F>rs@rrr!s%<00><><00><00><08><11>
+<2B><11>
+<2B><01>rrc<00>`<00>]tRt^9tR]3R]3R]P 3R]P3R]3.tRt R#)<08>CONSOLE_SCREEN_BUFFER_INFO<46>dwSize<7A>dwCursorPosition<6F> wAttributes<65>srWindow<6F>dwMaximumWindowSizerN)
rrrrrr<00>WORD<52>
SMALL_RECT<EFBFBD>_fields_rrrrr1r19s;<00><00> <11>5<EFBFBD><19> <1B>U<EFBFBD>#<23> <16><08> <0A> <0A>&<26> <13>X<EFBFBD>(<28>(<28>)<29> <1E><05>&<26> <06>Hrr1c<00>N<00>]tRt^CtR]P
3R]P 3.tRtR#)<05>CONSOLE_CURSOR_INFOr2<00>bVisiblerN) rrrrr<00>DWORD<52>BOOLr9rrrrr;r;Cs<00><00><19>8<EFBFBD>><3E>><3E>*<2A>Z<EFBFBD><18><1D><1D>,G<>H<>Hrr;c<00>D<00>V^8<>dQhR\R\P/#)r<00>handler)r*r<00>HANDLE)rs"rr r Ns<00><00> 8<> 8<><13> 8<>(<28>/<2F>/<2F> 8rc<04>H<00>\\P\V44#)z<>Retrieves a handle to the specified standard device (standard input, standard output, or standard error).
Args:
handle (int): Integer identifier for the handle. Defaults to -11 (stdout).
Returns:
wintypes.HANDLE: The handle
)r
rrA<00> _GetStdHandle)r@s&r<00> GetStdHandlerDNs<00><00> <10><08><0F><0F><1D>v<EFBFBD>!6<> 7<>7rc<00>D<00>V^8<>dQhR\PR\/#<00>r<00>
std_handler)rrAr*)rs"rr r _s<00><00><1E><1E>x<EFBFBD><EFBFBD><EFBFBD><1E>3<EFBFBD>rc<04><><00>\P!4p\\W44pV'g \ R4hVP
#)a<>Retrieves the current input mode of a console's input buffer
or the current output mode of a console screen buffer.
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
Raises:
LegacyWindowsError: If any error occurs while calling the Windows console API.
Returns:
int: Value representing the current console mode as documented at
https://docs.microsoft.com/en-us/windows/console/getconsolemode#parameters
z)Unable to get legacy Windows Console Mode)rr=<00>bool<6F>_GetConsoleModerr)rG<00> console_mode<64>successs& r<00>GetConsoleModerM_s:<00><00><1C>><3E>><3E>#<23>L<EFBFBD><12>?<3F>:<3A><<3C>=<3D>G<EFBFBD> <12> <20>!L<>M<>M<> <17> <1D> <1D>rc
<00>h<00>V^8<>dQhR\PR\R\R\R\/#)rrG<00>char<61>length<74>startr)rrA<00>strr*r)rs"rr r <00>s><00><00><1D><1D><18><0F><0F><1D>
<0A><1D> <10><1D> <1E> <1D>
 <09> rc <04><><00>\P!VP44p\P!V4p\P!^4p\ VVVV\ V44VP#)a<>Writes a character to the console screen buffer a specified number of times, beginning at the specified coordinates.
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
char (str): The character to write. Must be a string of length 1.
length (int): The number of times to write the character.
start (WindowsCoordinates): The coordinates to start writing at.
Returns:
int: The number of characters written.
)<08>ctypes<65>c_char<61>encoderr=<00>_FillConsoleOutputCharacterWrr)rGrOrPrQ<00> character<65>num_characters<72> num_writtens&&&& r<00>FillConsoleOutputCharacterr[<00>s^<00><00>"<17> <0A> <0A>d<EFBFBD>k<EFBFBD>k<EFBFBD>m<EFBFBD>,<2C>I<EFBFBD><1D>^<5E>^<5E>F<EFBFBD>+<2B>N<EFBFBD><1A>.<2E>.<2E><11>#<23>K<EFBFBD> <20><12><11><16> <0A> <0A>k<EFBFBD><1A> <06> <17> <1C> <1C>rc
<00>h<00>V^8<>dQhR\PR\R\R\R\/#)rrG<00>
attributesrPrQr)rrAr*r)rs"rr r <00>s><00><00><1D><1D><18><0F><0F><1D><13><1D> <10><1D> <1E> <1D>
 <09> rc <04><><00>\P!V4p\P!V4p\P!^4p\WWC\ V44VP
#)aHSets the character attributes for a specified number of character cells,
beginning at the specified coordinates in a screen buffer.
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
attributes (int): Integer value representing the foreground and background colours of the cells.
length (int): The number of cells to set the output attribute of.
start (WindowsCoordinates): The coordinates of the first cell whose attributes are to be set.
Returns:
int: The number of cells whose attributes were actually set.
)rr=r7<00>_FillConsoleOutputAttributerr)rGr]rPrQ<00> num_cells<6C> style_attrsrZs&&&& r<00>FillConsoleOutputAttributerb<00>sP<00><00>$<19><0E><0E>v<EFBFBD>&<26>I<EFBFBD><1A>-<2D>-<2D>
<EFBFBD>+<2B>K<EFBFBD><1A>.<2E>.<2E><11>#<23>K<EFBFBD><1F><12><19>5<EFBFBD><1B>3E<33><06> <17> <1C> <1C>rc<00>d<00>V^8<>dQhR\PR\PR\/#)rrGr]r)rrAr7rI)rs"rr r <00>s1<00><00> B<01> B<01><18><0F><0F> B<01>-5<>]<5D>]<5D> B<01> <09> Brc<04>*<00>\\W44#)adSet the colour attributes for all text written after this function is called.
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
attributes (int): Integer value representing the foreground and background colours.
Returns:
bool: True if the attribute was set successfully, otherwise False.
)rI<00>_SetConsoleTextAttribute)rGr]s&&r<00>SetConsoleTextAttributerf<00>s<00><00> <10>(<28><1A>@<40> A<>Arc<00>D<00>V^8<>dQhR\PR\/#rF)rrAr1)rs"rr r <00>s <00><00> &<26> &<26><18><0F><0F> &<26><1F> &rc<04>D<00>\4p\V\V44V#)a]Retrieves information about the specified console screen buffer.
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
Returns:
CONSOLE_SCREEN_BUFFER_INFO: A CONSOLE_SCREEN_BUFFER_INFO ctype struct contain information about
screen size, cursor position, colour attributes, and more.)r1<00>_GetConsoleScreenBufferInfor)rG<00>console_screen_buffer_infos& r<00>GetConsoleScreenBufferInfork<00>s#<00><00>"<<3C>!=<3D><1E><1F>
<EFBFBD>E<EFBFBD>2L<EFBFBD>,M<>N<> %<25>%rc<00>P<00>V^8<>dQhR\PR\R\/#)rrG<00>coordsr)rrArrI)rs"rr r <00>s(<00><00> ?<3F> ?<3F><18><0F><0F> ?<3F>);<3B> ?<3F> <09> ?rc<04>*<00>\\W44#)a-Set the position of the cursor in the console screen
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
coords (WindowsCoordinates): The coordinates to move the cursor to.
Returns:
bool: True if the function succeeds, otherwise False.
)rI<00>_SetConsoleCursorPosition)rGrms&&r<00>SetConsoleCursorPositionrp<00>s<00><00> <10>)<29>*<2A>=<3D> ><3E>>rc<00>P<00>V^8<>dQhR\PR\R\/#<00>rrG<00> cursor_infor<00>rrAr;rI)rs"rr r s-<00><00> G<01> G<01><18><0F><0F> G<01>.A<> G<01> <09> Grc<04>><00>\\V\V444#)avGet the cursor info - used to get cursor visibility and width
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
cursor_info (CONSOLE_CURSOR_INFO): CONSOLE_CURSOR_INFO ctype struct that receives information
about the console's cursor.
Returns:
bool: True if the function succeeds, otherwise False.
)rI<00>_GetConsoleCursorInfor<00>rGrss&&r<00>GetConsoleCursorInforxs<00><00> <10>%<25>j<EFBFBD>%<25> <0B>2D<32>E<> F<>Frc<00>P<00>V^8<>dQhR\PR\R\/#rrrt)rs"rr r +s-<00><00> G<01> G<01><18><0F><0F> G<01>.A<> G<01> <09> Grc<04>><00>\\V\V444#)a_Set the cursor info - used for adjusting cursor visibility and width
Args:
std_handle (wintypes.HANDLE): A handle to the console input buffer or the console screen buffer.
cursor_info (CONSOLE_CURSOR_INFO): CONSOLE_CURSOR_INFO ctype struct containing the new cursor info.
Returns:
bool: True if the function succeeds, otherwise False.
)rI<00>_SetConsoleCursorInforrws&&r<00>SetConsoleCursorInfor|+s<00><00> <10>%<25>j<EFBFBD>%<25> <0B>2D<32>E<> F<>Frc<00>0<00>V^8<>dQhR\R\/#)r<00>titler)rRrI)rs"rr r ?s<00><00> )<29> )<29>3<EFBFBD> )<29>4<EFBFBD> )rc<04>*<00>\\V44#)z<>Sets the title of the current console window
Args:
title (str): The new title of the console window.
Returns:
bool: True if the function succeeds, otherwise False.
)rI<00>_SetConsoleTitle)r~s&r<00>SetConsoleTitler<65>?s<00><00> <10> <20><15>'<27> (<28>(rc<00><>a<00>]tRtRtoRt^t.R)OtV3RlRlt]V3RlRl4t ]V3RlRl4t
V3R lR
lt V3R lR lt V3R lRlt V3RlRltV3RlRltV3RlRltV3RlRltV3RlRltV3RlRltV3RlRltV3RlRltV3RlR ltV3R!lR"ltV3R#lR$ltV3R%lR&ltR'tVtR(#)*<2A>LegacyWindowsTermiKanThis class allows interaction with the legacy Windows Console API. It should only be used in the context
of environments where virtual terminal processing is not available. However, if it is used in a Windows environment,
the entire API should work.
Args:
file (IO[str]): The file which the Windows Console API HANDLE is retrieved from, defaults to sys.stdout.
c<00>"<<01>V^8<>dQhRRRR/#)r<00>filezIO[str]rNr)rrs"<22>rr <00>LegacyWindowsTerm.__annotate__js<00><><00>  <20>  <20>Y<EFBFBD>  <20>4<EFBFBD>  rc<08>N<00>\\4pW n\V4PpW0nV^,VnV^, ^,VnVP VP^,,VnWn VPVn
VPVn R#)<02>N) rD<00>STDOUT<55>_handlerkr4<00> _default_text<78> _default_fore<72> _default_back<63>_default_attrs<72>_file<6C>write<74>flush)<04>selfr<66>r@<00> default_texts&& r<00>__init__<5F>LegacyWindowsTerm.__init__js<00><00><1D>f<EFBFBD>%<25><06><1D> <0C>1<>&<26>9<>E<>E<> <0C>)<29><1A>)<29>A<EFBFBD>-<2D><04><1A>*<2A>a<EFBFBD>/<2F>1<EFBFBD>4<><04><1A>"<22>0<>0<>D<EFBFBD>4F<34>4F<34>!<21>4K<34>L<><04><1B><19>
<EFBFBD><19>Z<EFBFBD>Z<EFBFBD><04>
<EFBFBD><19>Z<EFBFBD>Z<EFBFBD><04>
rc<00> <<01>V^8<>dQhRS[/#<00>rr<00>r)rrs"<22>rr r<>ys<00><><00><<3C><<3C>!3<><rc <0C><><00>\VP4Pp\VPVP
R7#)ztReturns the current position of the cursor (0-based)
Returns:
WindowsCoordinates: The current cursor position.
<EFBFBD>r$r#)rkr<>r3r<00>Y<>X)r<><00>coords& r<00>cursor_position<6F>!LegacyWindowsTerm.cursor_positionxs-<00><00>2<>$<24>,<2C>,<2C>?<3F>P<>P<><05>!<21>e<EFBFBD>g<EFBFBD>g<EFBFBD>5<EFBFBD>7<EFBFBD>7<EFBFBD>;<3B>;rc<00> <<01>V^8<>dQhRS[/#r<>r<>)rrs"<22>rr r<><00>s<00><><00>H<01>H<01>/<2F>Hrc <0C><><00>\VP4Pp\VPVP
R7#)z<>Returns the current size of the console screen buffer, in character columns and rows
Returns:
WindowsCoordinates: The width and height of the screen as WindowsCoordinates.
r<EFBFBD>)rkr<>r2rr<>r<>)r<><00> screen_sizes& rr<><00>LegacyWindowsTerm.screen_size<7A>s-<00><00>8<><04> <0C> <0C>E<>L<>L<> <0B>!<21>k<EFBFBD>m<EFBFBD>m<EFBFBD><1B><1D><1D>G<>Grc<00>$<<01>V^8<>dQhRS[RR/#)r<00>textrN<>rR)rrs"<22>rr r<><00>s<00><><00><15><15>s<EFBFBD><15>t<EFBFBD>rc <0C>H<00>VPV4VP4R#)zWrite text directly to the terminal without any modification of styles
Args:
text (str): The text to write to the console
N)r<>r<>)r<>r<>s&&r<00>
write_text<EFBFBD>LegacyWindowsTerm.write_text<78>s<00><00> <0A>
<EFBFBD>
<EFBFBD>4<EFBFBD><18> <0C>
<EFBFBD>
<EFBFBD> rc<00>*<<01>V^8<>dQhRS[RS[RR/#)rr<><00>stylerN)rRr )rrs"<22>rr r<><00>s'<00><><00>%M<01>%M<01><13>%M<01>U<EFBFBD>%M<01>t<EFBFBD>%Mrc <0C>@<00>VPpVPpVP'dYCrCV'd<>VP\P
4P pVeTM^pVP'dWPP,pVP'dWPP(,pVPV,pM VPpV'dFVP\P
4P pVeTM^pVPV,pM VPpVfQhVfQh\VP\P !WV^,,4R7VP#V4\VPVP$R7R#)zuWrite styled text to the terminal.
Args:
text (str): The text to write
style (Style): The style of the text
N)r])<13>color<6F>bgcolor<6F>reverse<73> downgrader <00>WINDOWS<57>number<65>bold<6C>
BRIGHT_BIT<EFBFBD>dim<69>ANSI_TO_WINDOWSr<53>r<>rfr<>rT<00>c_ushortr<74>r<>)r<>r<>r<>r<>r<><00>fore<72>backs&&& r<00> write_styled<65>LegacyWindowsTerm.write_styled<65>s6<00><00><16> <0B> <0B><05><17>-<2D>-<2D><07> <10>=<3D>=<3D>=<3D>$<24>7<EFBFBD> <10><18>?<3F>?<3F>;<3B>#6<>#6<>7<>><3E>><3E>D<EFBFBD><1F>+<2B>4<EFBFBD><11>D<EFBFBD><14>z<EFBFBD>z<EFBFBD>z<EFBFBD><1B>o<EFBFBD>o<EFBFBD>-<2D><04><14>y<EFBFBD>y<EFBFBD>y<EFBFBD><1B><EFBFBD><EFBFBD>.<2E>.<2E><04><17>'<27>'<27><04>-<2D>D<EFBFBD><17>%<25>%<25>D<EFBFBD> <12><1A>$<24>$<24>[<5B>%8<>%8<>9<>@<40>@<40>D<EFBFBD><1F>+<2B>4<EFBFBD><11>D<EFBFBD><17>'<27>'<27><04>-<2D>D<EFBFBD><17>%<25>%<25>D<EFBFBD><13><1F><1F><1F><13><1F><1F><1F><1F> <10>L<EFBFBD>L<EFBFBD>V<EFBFBD>_<EFBFBD>_<EFBFBD>T<EFBFBD>Q<EFBFBD>Y<EFBFBD>5G<35>%H<>
<EFBFBD> <0A><0F><0F><04><1D><1F><04> <0C> <0C><14>9K<39>9K<39>Lrc<00>$<<01>V^8<>dQhRS[RR/#)r<00> new_positionrNr<4E>)rrs"<22>rr r<><00>s <00><><00>D<01>D<01>+=<3D>D<01>$<24>Drc <0C>|<00>VP^8gVP^8dR#\VPVR7R#)z<>Set the position of the cursor
Args:
new_position (WindowsCoordinates): The WindowsCoordinates representing the new position of the cursor.
N<EFBFBD>rm)r#r$rpr<>)r<>r<>s&&r<00>move_cursor_to<74> LegacyWindowsTerm.move_cursor_to<74>s0<00><00> <18> <1B> <1B>a<EFBFBD> <1F><<3C>#3<>#3<>a<EFBFBD>#7<> <12> <20><14><1C><1C>l<EFBFBD>Crc<00><<01>V^8<>dQhRR/#<00>rrNr)rrs"<22>rr r<><00>s<00><><00>
<EFBFBD>
<EFBFBD>D<EFBFBD>
rc <0C><><00>VPpVPpVPp\VP^R7p\ VP RW4R7\VP VPVVR7R#)z@Erase all content on the line the cursor is currently located atr<74><00> <20>rPrQN) r<>r<>r#rr$r[r<>rbr<>)r<>r<>r<><00>cells_to_erase<73>start_coordinatess& r<00>
erase_line<EFBFBD>LegacyWindowsTerm.erase_line<6E>sg<00><00><1A>&<26>&<26> <0B><1E>.<2E>.<2E><0F>$<24><1F><1F><0E>.<2E>?<3F>3F<33>3F<33>A<EFBFBD>N<><19>"<22> <10>L<EFBFBD>L<EFBFBD>#<23>n<EFBFBD>
<EFBFBD> #<23> <10>L<EFBFBD>L<EFBFBD> <10> <1F> <1F>!<21>#<23> 
rc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<><00>s<00><><00> 
<EFBFBD> 
<EFBFBD>4<EFBFBD> 
rc <0C><><00>VPpVPPVP,
p\VPRW!R7\ VPVP VVR7R#)zBErase all content from the cursor position to the end of that liner<65>r<>N)r<>r<>r#r[r<>rbr<>)r<>r<>r<>s& r<00>erase_end_of_line<6E>#LegacyWindowsTerm.erase_end_of_line<6E>s\<00><00><1E>.<2E>.<2E><0F><1D>)<29>)<29>-<2D>-<2D><0F>0C<30>0C<30>C<><0E>"<22> <10>L<EFBFBD>L<EFBFBD>#<23>n<EFBFBD>
<EFBFBD> #<23> <10>L<EFBFBD>L<EFBFBD> <10> <1F> <1F>!<21>!<21> 
rc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<><00>s<00><><00>
<EFBFBD>
<EFBFBD>T<EFBFBD>
rc <0C><><00>VPwr\V^4p\VPRW#R7\ VPVP
W#R7R#)zDErase all content from the cursor position to the start of that liner<65>r<>N)r<>rr[r<>rbr<>)r<>r$r#rQs& r<00>erase_start_of_line<6E>%LegacyWindowsTerm.erase_start_of_line<6E>sD<00><00><17>'<27>'<27><08><03>"<22>3<EFBFBD><01>*<2A><05>"<22>4<EFBFBD><<3C><<3C><13>S<EFBFBD>N<>"<22> <10>L<EFBFBD>L<EFBFBD>$<24>-<2D>-<2D>c<EFBFBD>
rc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<><00>s<00><><00>
<EFBFBD>
<EFBFBD><04>
rc <0C><><00>VPp\VP\VP^,
VP
R7R7R#)z Move the cursor up a single cellr<6C>r<>N<>r<>rpr<>rr$r#<00>r<>r<>s& r<00>move_cursor_up<75> LegacyWindowsTerm.move_cursor_up<75>s:<00><00><1E>.<2E>.<2E><0F> <20> <10>L<EFBFBD>L<EFBFBD>%<25>#<23>'<27>'<27>!<21>+<2B><1F>1D<31>1D<31><0E>
rc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<><00>s<00><><00> 
<EFBFBD> 
<EFBFBD>$<24> 
rc <0C><><00>VPp\VP\VP^,VP
R7R7R#)z"Move the cursor down a single cellr<6C>r<>Nr<4E>r<>s& r<00>move_cursor_down<77>"LegacyWindowsTerm.move_cursor_down<77>s;<00><00><1E>.<2E>.<2E><0F> <20> <10>L<EFBFBD>L<EFBFBD>%<25>#<23>'<27>'<27>!<21>+<2B>#<23>'<27>'<27><0E>
rc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<>s<00><><00>

<EFBFBD>

<EFBFBD>T<EFBFBD>

rc <0C><><00>VPwrW PP^,
8Xd V^, p^pM V^, p\VP\ WR7R7R#)zIMove the cursor forward a single cell. Wrap to the next line if required.r<>r<>N<>r<>r<>r#rpr<>r<00>r<>r$r#s& r<00>move_cursor_forward<72>%LegacyWindowsTerm.move_cursor_forwardsT<00><00><17>'<27>'<27><08><03> <0E>"<22>"<22>&<26>&<26><11>*<2A> *<2A> <0F>1<EFBFBD>H<EFBFBD>C<EFBFBD><13>C<EFBFBD> <0F>1<EFBFBD>H<EFBFBD>C<EFBFBD> <20> <10>L<EFBFBD>L<EFBFBD>!3<><03>!E<>
rc<00>$<<01>V^8<>dQhRS[RR/#)r<00>columnrNr))rrs"<22>rr r<>s<00><><00>W<01>W<01>C<EFBFBD>W<01>D<EFBFBD>Wrc <0C>b<00>VPwr#\VP\W!4R7R#)z<>Move cursor to the column specified by the zero-based column index, staying on the same row
Args:
column (int): The zero-based column index to move the cursor to.
r<EFBFBD>N)r<>rpr<>r)r<>r<>r$<00>_s&& r<00>move_cursor_to_column<6D>'LegacyWindowsTerm.move_cursor_to_columns%<00><00> <16>%<25>%<25><06><03> <20><14><1C><1C>6H<36><13>6U<36>Vrc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<>s<00><><00>

<EFBFBD>

<EFBFBD>d<EFBFBD>

rc <0C><><00>VPwrV^8Xd(V^,pVPP^,
pM V^,p\VP\ WR7R7R#)zNMove the cursor backward a single cell. Wrap to the previous line if required.r<>r<>Nr<4E>r<>s& r<00>move_cursor_backward<72>&LegacyWindowsTerm.move_cursor_backwardsU<00><00><17>'<27>'<27><08><03> <0E>!<21>8<EFBFBD> <0F>1<EFBFBD>H<EFBFBD>C<EFBFBD><16>"<22>"<22>&<26>&<26><11>*<2A>C<EFBFBD> <0F>1<EFBFBD>H<EFBFBD>C<EFBFBD> <20> <10>L<EFBFBD>L<EFBFBD>!3<><03>!E<>
rc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<>#s<00><><00>I<01>I<01>T<EFBFBD>Irc <0C>n<00>VP4p\V^R7p\VPVR7R#)zHide the cursor<6F>r2r<<00>rsN<><04>_get_cursor_sizer;r|r<>)r<><00>current_cursor_size<7A>invisible_cursors& r<00> hide_cursor<6F>LegacyWindowsTerm.hide_cursor#s/<00><00>"<22>3<>3<>5<><1B>.<2E>6I<36>TU<54>V<><18><1C>T<EFBFBD>\<5C>\<5C>7G<37>Hrc<00><<01>V^8<>dQhRR/#r<>r)rrs"<22>rr r<>)s<00><><00>G<01>G<01>T<EFBFBD>Grc <0C>n<00>VP4p\V^R7p\VPVR7R#)zShow the cursorr<72>r<>Nr<4E>)r<>r<><00>visible_cursors& r<00> show_cursor<6F>LegacyWindowsTerm.show_cursor)s-<00><00>"<22>3<>3<>5<><1B>,<2C>4G<34>RS<52>T<><0E><1C>T<EFBFBD>\<5C>\<5C>~<7E>Frc<00>$<<01>V^8<>dQhRS[RR/#)rr~rNr<4E>)rrs"<22>rr r<>/s<00><><00><1F><1F>s<EFBFBD><1F>t<EFBFBD>rc <0C>J<00>\V4^<5E>8gQR4h\V4R#)zaSet the title of the terminal window
Args:
title (str): The new title of the console window
z.Console title must be less than 255 charactersN)<02>lenr<6E>)r<>r~s&&r<00> set_title<6C>LegacyWindowsTerm.set_title/s$<00><00> <13>5<EFBFBD>z<EFBFBD>C<EFBFBD><1F>Q<>!Q<>Q<><1F><17><05>rc<00> <<01>V^8<>dQhRS[/#r<>r))rrs"<22>rr r<>8s<00><><00>'<27>'<27>#<23>'rc <0C>n<00>\4p\VPVR7\VP4#)zEGet the percentage of the character cell that is filled by the cursorr<72>)r;rxr<>r*r2)r<>rss& rr<><00>"LegacyWindowsTerm._get_cursor_size8s)<00><00>)<29>+<2B> <0B><1C>T<EFBFBD>\<5C>\<5C>{<7B>C<><12>;<3B>%<25>%<25>&<26>&r)r<>r<>r<>r<>r<>r<>r<>r<>N)<10><00>r<00><00><00><00>r<><00><00> <00>
<00><00> <00> <00> <00>)rrrrr+r<>r<>r<><00>propertyr<79>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rr.r/s@rr<>r<>Ks<><00><><00><00><08><13>J<EFBFBD><06>O<EFBFBD>&  <20>  <20><0E><<3C><0E><<3C><0E>H<01><0E>H<01><15><15>%M<01>%M<01>ND<01>D<01>
<EFBFBD>
<EFBFBD> 
<EFBFBD> 
<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD> 
<EFBFBD> 
<EFBFBD>

<EFBFBD>

<EFBFBD>W<01>W<01>

<EFBFBD>

<EFBFBD>I<01>I<01> G<01>G<01> <1F><1F>'<27>'rr<><00>__main__)<01>ConsolezWin32 Console Examples<65>black<63>red)r<>r<>zblack on greenzChecking colour outputz[on red]on red!z [blue]blue!z[yellow]yellow!z[bold yellow]bold yellow!z[bright_yellow]bright_yellow!z%[dim bright_yellow]dim bright_yellow!z[italic cyan]italic cyan!z'[bold white on blue]bold white on blue!z7[reverse bold white on blue]reverse bold white on blue!z'[bold black on cyan]bold black on cyan!z[black on green]black on green!z[blue on green]blue on green!z[white on black]white on black!z[black on white]black on white!z'[#1BB152 on #DA812D]#1BB152 on #DA812D!zChecking cursor movementz"went back and wrapped to prev linezwe go upzand downzwe went up and back 2zwe went down and back 2zChecking line erasingz(
...Deleting to the start of the line...z?The red arrow shows the cursor location, and direction of erase<73><z black on redz"
...And to the end of the line...<2E>>z)
...Now the whole line will be erased...zI'm going to disappear!z black on cyan)r<><00>
c<00>@<00>V^8<>dQh/^\9d
\;R&#)r<00>windll)<02>__conditional_annotations__r)rs"rr r s<00><00><04><04><13><12><03><12>ri<><69><EFBFBD><EFBFBD>)\rr+rT<00>sys<79>typingrr<00>platform<72> LibraryLoader<65>WinDLL<4C> ImportErrorr<00>timerrrrrr r
<00>
rich.colorr <00>
rich.styler r<><00>"ENABLE_VIRTUAL_TERMINAL_PROCESSING<4E>_COORDr<00> Exceptionrrr1r;<00>kernel32rDrCr=<00>argtypesrA<00>restyperMrJ<00>LPDWORDr><00>FillConsoleOutputCharacterWrWrU<00>POINTERr[rbr_r7rfrerkrirprorxrvr|r{<00>SetConsoleTitleWr<57><00>LPCWSTRr<52>r<>r@<00> rich.consoler<00>console<6C>stdout<75>termr<6D>r<><00>parse<73>heading<6E>rule<6C>printr<74>r<><00>sleepr<70>r<>r<>r<>r<>r<>r<>r<>r<>r )rs@r<00><module>r:s<00><><01><04>
<0E>
<EFBFBD><16><12><06><12><06><<3C><<3C>7<EFBFBD><1A> <13> !<21> !<21>&<26>-<2D>-<2D> 0<>F<EFBFBD>
<15><18>
<EFBFBD>"B<>C<>
D<EFBFBD>D<> <0B>-<2D>-<2D>-<2D>-<2D>"<22><1C> <0C><06>%&<26>"<22><10><0F><0F><05> <09><19> <09>+<2B><1A>+<2B>0<06><19><06>I<01>&<26>*<2A>*<2A>I<01><17><0F><0F>,<2C>,<2C> <0A> <0C>N<EFBFBD>N<EFBFBD><02> <0A><16>!<21><0F><0F> <0A><15> &<26> 8<><19>/<2F>/<2F>0<>0<><0F>$<24>O<EFBFBD>O<EFBFBD>X<EFBFBD>-=<3D>-=<3D>><3E><0F><18>"<22>-<2D>-<2D><0F><17><1E>, &<26><EFBFBD><EFBFBD>J<>J<><1C> <0C>O<EFBFBD>O<EFBFBD>
<EFBFBD>M<EFBFBD>M<EFBFBD> <0C>N<EFBFBD>N<EFBFBD><08><14>e<EFBFBD><1B>(<28>)<29>
<EFBFBD>N<EFBFBD>N<EFBFBD>8<EFBFBD>><3E>><3E>"<22> )<02><1C>%<25>(0<>}<7D>}<7D><1C>$<24><1D><%<25>o<EFBFBD>o<EFBFBD>H<>H<><1B> <0C>O<EFBFBD>O<EFBFBD> <0C>M<EFBFBD>M<EFBFBD> <0C>N<EFBFBD>N<EFBFBD><08><14>e<EFBFBD><1B>(<28>)<29>
<EFBFBD>N<EFBFBD>N<EFBFBD>8<EFBFBD>><3E>><3E>"<22> (<02><1B>$<24>'/<2F>m<EFBFBD>m<EFBFBD><1B>#<23><1D>6"<22>?<3F>?<3F>B<>B<><18> <0C>O<EFBFBD>O<EFBFBD> <0C>M<EFBFBD>M<EFBFBD>%<02><18>!<21>$,<2C>=<3D>=<3D><18> <20> B<01> %<25>o<EFBFBD>o<EFBFBD>H<>H<><1B> <0C>O<EFBFBD>O<EFBFBD>
<EFBFBD>N<EFBFBD>N<EFBFBD>-<2D>.<2E>(<02><1B>$<24>'/<2F>m<EFBFBD>m<EFBFBD><1B>#<23> &<26> #<23>O<EFBFBD>O<EFBFBD>D<>D<><19> <0C>O<EFBFBD>O<EFBFBD><08><14>e<EFBFBD><1B>(<28>)<29>&<02><19>"<22>%-<2D>M<EFBFBD>M<EFBFBD><19>!<21> ?<3F><1F><0F><0F><<3C><<3C><15> <0C>O<EFBFBD>O<EFBFBD>
<EFBFBD>N<EFBFBD>N<EFBFBD>&<26>'<27>"<02><15><1E>!)<29> <0A> <0A><15><1D> G<01> <1F><0F><0F><<3C><<3C><15> <0C>O<EFBFBD>O<EFBFBD>
<EFBFBD>N<EFBFBD>N<EFBFBD>&<26>'<27>"<02><15><1E>!)<29> <0A> <0A><15><1D> G<01><1A>?<3F>?<3F>3<>3<><10>%<25>-<2D>-<2D>.<2E><10><19>#<23>=<3D>=<3D><10><18> )<29>q'<27>q'<27>h <0C>z<EFBFBD><19> <19>^<5E>F<EFBFBD>$<24><15>i<EFBFBD>G<EFBFBD> <1C>S<EFBFBD>Z<EFBFBD>Z<EFBFBD> (<28>D<EFBFBD><08>N<EFBFBD>N<EFBFBD>+<2B>,<2C> <11><07><15> /<2F>E<EFBFBD><13>k<EFBFBD>k<EFBFBD>*<2A>+<2B>G<EFBFBD> <0C>L<EFBFBD>L<EFBFBD>)<29>*<2A> <0B>M<EFBFBD>M<EFBFBD>#<23>$<24> <0B>M<EFBFBD>M<EFBFBD>-<2D> <20> <0B>M<EFBFBD>M<EFBFBD>#<23>$<24> <0B>M<EFBFBD>M<EFBFBD>-<2D>.<2E> <0B>M<EFBFBD>M<EFBFBD>1<>2<> <0B>M<EFBFBD>M<EFBFBD>9<>:<3A> <0B>M<EFBFBD>M<EFBFBD>-<2D>.<2E> <0B>M<EFBFBD>M<EFBFBD>;<3B><<3C> <0B>M<EFBFBD>M<EFBFBD>K<>L<> <0B>M<EFBFBD>M<EFBFBD>;<3B><<3C> <0B>M<EFBFBD>M<EFBFBD>3<>4<> <0B>M<EFBFBD>M<EFBFBD>1<>2<> <0B>M<EFBFBD>M<EFBFBD>3<>4<> <0B>M<EFBFBD>M<EFBFBD>3<>4<> <0B>M<EFBFBD>M<EFBFBD>;<3B><<3C> <0C>L<EFBFBD>L<EFBFBD>+<2B>,<2C> <0B>M<EFBFBD>M<EFBFBD>O<EFBFBD><08><1D><1D><1F><08><1D><1D><1F><08>O<EFBFBD>O<EFBFBD>8<>9<><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><17><17><19><08>O<EFBFBD>O<EFBFBD>J<EFBFBD><1F><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><19><19><1B><08>O<EFBFBD>O<EFBFBD>J<EFBFBD><1F><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><17><17><19><08><1D><1D><1F><08><1D><1D><1F><08>O<EFBFBD>O<EFBFBD>+<2B>,<2C><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><19><19><1B><08><1D><1D><1F><08><1D><1D><1F><08>O<EFBFBD>O<EFBFBD>-<2D>.<2E><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD> <09><14><14><16> <0B>M<EFBFBD>M<EFBFBD>O<EFBFBD> <0B>L<EFBFBD>L<EFBFBD>(<28>)<29> <0B>M<EFBFBD>M<EFBFBD>=<3D>><3E><08>O<EFBFBD>O<EFBFBD>U<>V<><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><1E><1E>r<EFBFBD>"<22><08><15><15>c<EFBFBD>5<EFBFBD>;<3B>;<3B>~<7E>6<>7<><08><1D><1D><1F><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><1C><1C><1E><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD> <0B>M<EFBFBD>M<EFBFBD>8<>9<><08>O<EFBFBD>O<EFBFBD>U<>V<><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><1E><1E>r<EFBFBD>"<22><08><15><15>c<EFBFBD>5<EFBFBD>;<3B>;<3B>~<7E>6<>7<><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08><1A><1A><1C><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD> <0B>M<EFBFBD>M<EFBFBD>?<3F>@<40><08><15><15>/<2F>u<EFBFBD>{<7B>{<7B>?<3F>7S<37><15>T<><08>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><08>O<EFBFBD>O<EFBFBD><15><08><14><14><16> <09>$<24>K<EFBFBD>mr