
    ^h                     (    S SK JrJr   " S S5      rg)    )ListTuplec                   l    \ rS rSrS\4S jrS\S\SS4S jrSS	 jrS
\\\4   S\4S jr	S\4S jr
Srg)CommandHistory   promptc                     / U l         Xl        g N_history_prompt)selfr   s     N/home/james-whalen/.local/lib/python3.13/site-packages/chatdbg/util/history.py__init__CommandHistory.__init__   s    /1    commandresultreturnNc                 2    U =R                   X4/-  sl         g r
   r   )r   r   r   s      r   appendCommandHistory.append	   s    7+,,r   c                     / U l         g r
   r   )r   s    r   clearCommandHistory.clear   s	    r   entryc                 ^    Uu  p#U(       a  U R                    U SU 3$ U R                    U 3$ N
)r   )r   r   lineoutputs       r   _format_history_entry$CommandHistory._format_history_entry   s8    ll^D6F844ll^D6**r   c                     U R                    Vs/ s H  oR                  U5      PM     nnSR                  U5      $ s  snf r   )r   r#   join)r   x
entry_strss      r   __str__CommandHistory.__str__   s8    =A]]K]003]
Kyy$$ Ls   <r   )r   N)__name__
__module____qualname____firstlineno__strr   r   r   r   r#   r)   __static_attributes__ r   r   r   r      sT    s -c -3 -4 -+5c? +s +% %r   r   N)typingr   r   r   r1   r   r   <module>r3      s    % %r   