~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Robert Collins
  • Date: 2006-04-24 01:35:08 UTC
  • mto: (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: robertc@robertcollins.net-20060424013508-2d37e47814d9493e
Support importing into empty branches.

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