R`i7lddlmZmZddlmZddlmZddlmZerddl m Z m Z m Z m Z mZGddZy ) )Optional TYPE_CHECKING)Segment) StyleType) loop_last)ConsoleConsoleOptions RenderResultRenderableTypeGroupc VeZdZUdZded<ddddddeed ed dfd Z d d Z y)ScreenzA renderable that fills the terminal screen and crops excess. Args: renderable (RenderableType): Child renderable. style (StyleType, optional): Optional background style. Defaults to None. r renderableNF)styleapplication_mode renderablesrrreturnc@ddlm}|||_||_||_y)Nr)r )pip._vendor.rich.consoler rrr)selfrrrr s /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/rich/screen.py__init__zScreen.__init__s" 3- 0c#K|j\}}|jr|j|jnd}|j||}|j |j xsd||d}t j||||}|jr t dnt j}t|D]\} } | Ed{| r|y7w)N)widthheightT)rpad)rz ) sizer get_styleupdate render_linesrr set_shaperliner) rconsoleoptionsrrrrender_optionslinesnew_linelastr%s r__rich_console__zScreen.__rich_console__(s v15!!$**- eFC$$ OO !r>D% !!%eD&*&;&;76?#E*JD$OO+ sC C C CC)r&r r'r rr ) __name__ __module__ __qualname____doc____annotations__rrboolrr,rrrrsd! &*!& 1& 1 " 1 1  1 +; rrN)typingrrsegmentrrr_looprr&r r r r r rr3rrr7s**$$r