~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Robert Collins
  • Date: 2006-04-24 01:45:23 UTC
  • mto: (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: robertc@robertcollins.net-20060424014523-ef18f22034f17ec2
Backout debugging tweak to fai.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
            print '  %s - %s' % (opt.char, opt.help)
135
135
 
136
136
    if sys.platform == "win32":
 
137
        import msvcrt
137
138
        def __getchar(self):
138
 
            import msvcrt
139
 
            return msvcrt.getch()
 
139
            return msvcrt.getche()
140
140
    else:
141
141
        def __getchar(self):
142
142
            import tty