old_contents: #!/usr/bin/env python
  # encoding: UTF-8
  
  '''
  网易云音乐 Entry
  '''
  
  from menu import Menu
  
  
  def start():
      Menu().start()
  
  
  if __name__ == '__main__':
      start()
  
new_contents: #!/usr/bin/env python
  # encoding: UTF-8
  
  '''
  网易云音乐 Entry
  '''
  
  import curses, traceback
  from menu import Menu
  
  
  def start():
      nembox_menu = Menu()
      try:
          nembox_menu.start()
      except:
          # clean up terminal while failed
          nembox_menu.screen.keypad(1)
          curses.echo()
          curses.nocbreak()
          curses.endwin()
          traceback.print_exc()
  
  
  if __name__ == '__main__':
      start()
  
subject: clean up terminal while failed