##// END OF EJS Templates
curses: use "text" interface if TERM=dumb...
Kyle Lippincott -
r38749:d79f3afb default
parent child Browse files
Show More
@@ -1214,7 +1214,7 b' class ui(object):'
1214 "Feature %s does not handle all default interfaces" %
1214 "Feature %s does not handle all default interfaces" %
1215 feature)
1215 feature)
1216
1216
1217 if self.plain():
1217 if self.plain() or encoding.environ.get('TERM') == 'dumb':
1218 return "text"
1218 return "text"
1219
1219
1220 # Default interface for all the features
1220 # Default interface for all the features
@@ -368,6 +368,16 b" If only the default is set, we'll use th"
368 $ chunkselectorinterface
368 $ chunkselectorinterface
369 curses
369 curses
370
370
371 If TERM=dumb, we use text, even if the config says curses
372 $ chunkselectorinterface
373 curses
374 $ TERM=dumb chunkselectorinterface
375 text
376 (Something is keeping TERM=dumb in the environment unless I do this, it's not
377 scoped to just that previous command like in many shells)
378 $ TERM=xterm chunkselectorinterface
379 curses
380
371 It is possible to override the default interface with a feature specific
381 It is possible to override the default interface with a feature specific
372 interface
382 interface
373 $ cp $HGRCPATH.pretest $HGRCPATH
383 $ cp $HGRCPATH.pretest $HGRCPATH
General Comments 0
You need to be logged in to leave comments. Login now