def prompt_for_exit():
 g.message = ((c.r + 'Press ctrl-c again to exit') + c.w)
 g.content = content.generate_songlist_display()
 screen.update()
 try:
  userinput = input(((c.r + ' > ') + c.w))
 except (KeyboardInterrupt, EOFError):
  commands.misc.quits(showlogo=False)
 return userinput

def prompt_for_exit ( ) : g . message = ( ( c . r + 'Press ctrl-c again to exit' ) + c . w ) g . content = content . generate_songlist_display ( ) screen . update ( ) try : userinput = input ( ( ( c . r + ' > ' ) + c . w ) ) except ( KeyboardInterrupt , EOFError ) : commands . misc . quits ( showlogo = False ) return userinput
ask for exit confirmation .