Commits

Vladimir Kolev committed 09ddc0e

Better paging for search

Comments (0)

Files changed (1)

                             key = self.getch()
                             # Continue printing results
                             if key in ['c', 'C']:
+                                print "\x1b[1A\x1b[2K\x1b[1A"
                                 continue
                             elif key in ['d', 'D']:
                                 try:
                             else:
                                 break
                     print colored("\t\tThis are all %d results" % (count), 'green', attrs=['bold'])
+                except KeyboardInterrupt:
+                    sys.exit()
                 except:
                     self.return_error("Grooveshark couldn't be initalized")