+
    Si5                     n    R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 RR lt
R	R ltR# )
z9General console printing utilities used by the Cloud SDK.N)console_attr)console_pager)encoding)filesc                   \         P                  P                  4       '       g   R# V '       d'   \         P                  P                  4       '       g   R# V'       d'   \         P                  P                  4       '       g   R# V'       dF   \
        P                  ! R4      p\
        P                  ! R4      pV'       g   V'       d   VR8X  d   R# R# )a  Determines if the current terminal session is interactive.

sys.stdin must be a terminal input stream.

Args:
  output: If True then sys.stdout must also be a terminal output stream.
  error: If True then sys.stderr must also be a terminal output stream.
  heuristic: If True then we also do some additional heuristics to check if
             we are in an interactive context. Checking home path for example.

Returns:
  True if the current terminal session is interactive.
FHOMEHOMEPATH/T)sysstdinisattystdoutstderrosgetenv)outputerror	heuristichomehomepaths   &&&  V/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/fire/console/console_io.pyIsInteractiver      s|     
				CJJ%%''
3::$$&& 99VDyy$HTTS[	    c                X   \        RR7      '       g   VP                  V 4       R# V'       Ed   \        P                  ! \        P
                  RR4      pVR8X  d   RpM1V'       g*   R F#  p\        P                  ! V4      '       g   K!  Tp M	  V'       Edm   \        P                  ! \        P
                  RR4      pRT;'       g    R,           p\        P                  ! \        P
                  RV4       \        P                  ! \        P                  \        P                  4       \        P                  ! V\        P                  RR	7      p\        P                   ! 4       P#                  4       p	VP%                  V P'                  V	4      R
7       VP)                  4        \        P                  ! \        P                  \        P*                  4       Vf'   \        P                  ! \        P
                  RR4       R# \,        P.                  ! WV4      P1                  4        R# )zRun a user specified pager or fall back to the internal pager.

Args:
  contents: The entire contents of the text lines to page.
  out: The output stream.
  prompt: The page break prompt.
  check_pager: Checks the PAGER env var and uses it if True.
T)r   NPAGER-LESSz-R )r   shell)input)lesspager)r   writer   GetEncodedValuer   environr   FindExecutableOnPathSetEncodedValuesignalSIGINTSIG_IGN
subprocessPopenPIPEr   GetConsoleAttrGetEncodingcommunicateencodewaitSIG_DFLr   PagerRun)
contentsoutpromptcheck_pagerr!   command	less_origr    pencs
   &&&&      r   Morer=   D   si    
d	#	#IIh
[$$RZZ$?E|e&'%%g..%
 ' u **2::vtDiY__"%drzz648 mmFMM6>>2


5
t
Da'')557cmm(//#.m/ffhmmFMM6>>2		  VT:hV,002r   )FFF)NT)__doc__r   r'   r*   r
   fire.consoler   r   r   r   r   r=    r   r   <module>rA      s.     @ 	   
 % & ! $N*3r   