##// END OF EJS Templates
crecord: add helper function to determine if we should use curses...
Sean Farley -
r27529:940cedae stable
parent child Browse files
Show More
@@ -53,6 +53,14 b' except NameError:'
53 53 raise error.Abort(
54 54 _('the python curses/wcurses module is not available/installed'))
55 55
56 def checkcurses(ui):
57 """Return True if the user wants to use curses
58
59 This method returns True if curses is found (and that python is built with
60 it) and that the user has the correct flag for the ui.
61 """
62 return curses and ui.configbool('experimental', 'crecord', False)
63
56 64 _origstdout = sys.__stdout__ # used by gethw()
57 65
58 66 class patchnode(object):
General Comments 0
You need to be logged in to leave comments. Login now