◐ Shell
clean mode source ↗

Message 56524 - Python tracker

According to me, the Ctrl-C is not managed correctly in cmd.py. Ctrl-C
generates a a KeyboardInterrupt exceptions, and only EOFError is
managed. I propose to manage KeyboardInterrupt on line 130:
                               print 'are you sure you want to exit? y/n'
                                answer =''
                                while (answer != 'y') & (answer != 'n'):
                                        answer = raw_input()
                                if answer == 'y':
                                        exit(0)

Here is attached my new cmd.py
Hope ti will help.