~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Michael Ellerman
  • Date: 2006-06-17 06:41:34 UTC
  • mfrom: (0.5.3 shelf.bialix)
  • mto: (0.3.4 shelf-dev)
  • mto: This revision was merged to the branch mainline in revision 414.
  • Revision ID: michael@ellerman.id.au-20060617064134-1dd813742ee1dea4
Win32 fixes from Alexander, slightly reworked by me.

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
138
137
        def __getchar(self):
139
 
            return msvcrt.getche()
 
138
            import msvcrt
 
139
            return msvcrt.getch()
140
140
    else:
141
141
        def __getchar(self):
142
142
            import tty