~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Aaron Bentley
  • Date: 2006-03-23 16:43:09 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060323164309-311253fb9546a7ff
Updated bugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
1
3
import sys
2
4
 
3
5
class UserOption:
132
134
            print '  %s - %s' % (opt.char, opt.help)
133
135
 
134
136
    if sys.platform == "win32":
 
137
        import msvcrt
135
138
        def __getchar(self):
136
 
            import msvcrt
137
 
            return msvcrt.getch()
 
139
            return msvcrt.getche()
138
140
    else:
139
141
        def __getchar(self):
140
142
            import tty