parameters: (self, cmd)
docstring: Overridden from the parent class to use fancy rewriting prompt
docstring_summary: Overridden from the parent class to use fancy rewriting prompt
docstring_tokens: Overridden from the parent class to use fancy rewriting prompt
function: def auto_rewrite_input(self, cmd):
          """Overridden from the parent class to use fancy rewriting prompt"""
          if not self.show_rewritten_input:
              return
  
          tokens = self.prompts.rewrite_prompt_tokens()
          if self.pt_app:
              print_formatted_text(PygmentsTokens(tokens), end='',
                                   style=self.pt_app.app.style)
              print(cmd)
          else:
              prompt = ''.join(s for t, s in tokens)
              print(prompt, cmd, sep='')
function_tokens: def auto_rewrite_input ( self , cmd ) : if not self . show_rewritten_input : return tokens = self . prompts . rewrite_prompt_tokens ( ) if self . pt_app : print_formatted_text ( PygmentsTokens ( tokens ) , end = '' , style = self . pt_app . app . style ) print ( cmd ) else : prompt = '' . join ( s for t , s in tokens ) print ( prompt , cmd , sep = '' )