~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Aaron Bentley
  • Date: 2006-06-18 01:24:25 UTC
  • mfrom: (0.3.3 shelf-dev)
  • Revision ID: aaron.bentley@utoronto.ca-20060618012425-61c3d9d62a2cc971
Merged the latest Shelf changes, patches.py no longer needed.

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