~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Aaron Bentley
  • Date: 2006-07-11 18:53:52 UTC
  • mfrom: (0.3.5 my_shelf)
  • Revision ID: abentley@panoramicfeedback.com-20060711185352-562216f86dac6f7f
Merge shelf colorizing

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