original_docstring:  Redifine Ctrl+c shortcut to behave as the cpython Ctrl+c shortcut 
docstring: Redifine Ctrl+c shortcut to behave as the cpython Ctrl+c shortcut
docstring_tokens: Redifine Ctrl + c shortcut to behave as the cpython Ctrl + c shortcut
code: def f_on_ctrl_c( event ):
        """ Redifine Ctrl+c shortcut to behave as the cpython Ctrl+c shortcut """    
          
        # Get redraw_args and doprint: 
        _, redraw_args, doprint = f_get_values()    
        
        # Actions:
        line_length = len(event.cli.current_buffer.text)      
        if line_length > 0:
          event.cli.current_buffer.text += ' ^C'
        line_length = len(event.cli.current_buffer.text)      
        event.cli.current_buffer.cursor_position = line_length
        event.cli._redraw(**redraw_args)  
        if doprint: print()
        event.cli.reset() 
        event.cli.current_buffer.reset()
code_tokens: def f_on_ctrl_c ( event ) : _ , redraw_args , doprint = f_get_values ( ) line_length = len ( event . cli . current_buffer . text ) if line_length > 0 : event . cli . current_buffer . text += ' ^C' line_length = len ( event . cli . current_buffer . text ) event . cli . current_buffer . cursor_position = line_length event . cli . _redraw ( ** redraw_args ) if doprint : print ( ) event . cli . reset ( ) event . cli . current_buffer . reset ( )
short_docstring: Redifine Ctrl+c shortcut to behave as the cpython Ctrl+c shortcut
short_docstring_tokens: Redifine Ctrl + c shortcut to behave as the cpython Ctrl + c shortcut
comment: """ Redifine Ctrl+c shortcut to behave as the cpython Ctrl+c shortcut """$SEP$# Get redraw_args and doprint: $SEP$# Actions: